All the code bits on this page are for .NET, specifically C# and WPF (Windows Presentation Foundation). You'll need at least C# Express 2008 and .NET 3.5 SP1 to build and run the solutions.
UserControl == DataTemplate
This is a demo solution showing how you can use a WPF user control as a DataTemplate. The level of encapsulation you can achieve using this technique really helps to get the most from some features of WPF like data binding and controlling how data is displayed to the user. There are a couple of versions of this, one showing the basic idea and then one showing how this can be made more dynamic using the available code-behind.
This is just a little thing I did to package up with SampleSort. Since technologies like WPF and .NET 3.5 are so new it made sense to offer a small 'utility' application to end users. This way its easy to check that all is well with .NET 3.5 SP1.