Skip to main content


Showing posts from November, 2011

When the paste dries!

My computer was working fine enough. All was going well for it. Suddenly it began to freeze without a warning. With the help of my friend I came to figure out the source of the problem - overheating of the CPU. Now there are a number of reasons that can trigger this particular problem. In my case the CPU was fine, so the culprit was most likely drying up of the heatsink compound that is present in between the CPU and the heatsink. These are actually conductor that transfer the excess heat of the CPU to the heatsink which dissipates the heat using the fans. So all I had to do was apply a fresh coat of heatsink compound to the CPU top and also on the heatsink surface and I was set. My machine was fixed and the CPU was cooled.
Why does the paste dry up? Well, actually in dry conditions or due to prolonged use, the paste dries up reducing to powder, when it gives way leaving the heatsink separated from the CPU. So the CPU heats pretty fast and there is a risk of component overheating, irr…

Create Custom WPF Tab Control Easily

Windows Presentation Foundation (or WPF) is a computer-software graphical subsystem for rendering user interfaces in Windows-based applications. WPF, previously known as "Avalon", was initially released as part of .NET Framework 3.0. Rather than relying on the older GDI subsystem, WPF utilizes DirectX.

Creating a Tab Control in WPF is pretty simple. Let's get through the steps one by one.

Create a new Project. I am using VB as my language, you may C# if you wish to. :) A WPF Application Project will do fine.

I believe in clean coding. I wish to add a couple of controls to this solution. Instead of adding them to the root, I will right click the solution and click "Add Folder", rename as something like say "Cus Tab Controls".
Add a WPF custom control, name it whatever you wish. This will be the tabItem header. Here goes the code.

I just added a harmless Label, and a Button, which will act as the Close Tab button for the Tab Item.