“Why didn’t you use a HyperlinkButton?”

The other day I was working on a Silverlight control that would display a taxonomy of categories.  Something along the lines of: One > Two > Three > Four > Five where “Five” is a child of the “Four” category, which, in turn, is a child of the “Three” category, and so on.  The way…


But wait… who is this guy?

I realized after writing the last post that I had neglected to say who I was and why I was writing about Silverlight development.  My name is Casey Stein and I’m a software developer working at Microsoft.  I’ve been using Silverlight on the job for the past few months and find that many times it…


Styles Are Forever – But ControlTemplates Are a Developer’s Best Friend

I’ve been working on a project where I have a Button with a default Style that I wanted to change when the Button was clicked.  So let’s say you have a Button and a couple of Styles as shown below: <UserControl x:Class="SilverlightApplication1.Page" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="400" Height="300"> <UserControl.Resources> <Style x:Key="RedStyle" TargetType="Button"> <Setter Property="FontFamily" Value="Verdana"/> <Setter Property="Foreground"…

1