Archive for May, 2008|Monthly archive page

WPF Binding from the CornerRadius of a Border

Ok, after posing this question over at .NET Blog it took me all of about 30 seconds to realize what I needed to do.

Is it possible to do Binding on separate corners of the CornerRadius. I would like to have a slider that the top corners on the Border increase/decrease radius as the slider is moved. But I don’t want the bottom to corners to be affected.

I had used the tutorial over at Martin Grayson: Adventures of a ‘Designer’ to create a glass button for a project I am working on. This was a great starting point for my buttons, but there were a few things I needed to modify. I am only going to show you how I was able to bind to a slider to change the radius of the button.

The first thing I did was create the control template, notice though that where the corner radius is, I have binded it to a slider that I have added. But on the one corner, the corners originally were set to 4,4,0,0, which will mean that if we use the value from the slider, it will end up looking looking distorted like Figure 1.

Distorted Buttons
Figure 1

Read more »

If you had to pick 1 accessory for your EeePC

I am not usually in the habit of recommending anything, but I bought the Targus PA248U Tornado Notebook Chill Pad 2 weeks ago. I love my little Eee, but it gets pretty hot, so I wanted to try and keep it cooler, and hopefully in the process would extend the life of it. The PS248 is a little bigger than the Eee, but compliments it really nicely. It still is very easy to carry both in 1 hand and not feel like i was lugging around a 5 pound over sized notebook.
If you could only afford 1 accessory, I would recommend the P248.