Removing some of DataRow's ugliness through .NET 4.0’s dynamic

20 Apr 2011 If you do test your stuff, not having static compilation at all times doesn’t seem too daunting. In such cases (and when you can use .NET 4.0) you can consider using the dynamic capabilities to give yourself a somewhat nicer API to deal with a DataRow (something you may end...

In honour of the Pi Day – Expansion Series in Silverlight

14 Mar 2011 Since today is March 14 (or 3/14) here’s a small Silverlight App showing 3 expansions of Pi. With the slider you can control how many steps of the expansion you want to consider (With the maximum being 50). Equations are taken from here and here. [ ![Get Microsoft Silverlight](http://go.microsoft.com/fwlink/?LinkId=108181) ](http://go.microsoft.com/fwlink/?LinkID=149156&v=3.0.40818.0)...

That's when I realized my incantation of the Automation API had gone wrong

26 Feb 2011 I had written a tree search function that would use a stack to avoid a stackoverflow exception. I wish I had programmed it recursively…

More. DataTemplates. In. WPF.

18 Feb 2011 Imagine you want to fill a toolbar through its ItemsSource and appropriate DataTemplates and not all commands are created equal. Some commands should be shown as Buttons, or ToggleButtons or whatever Visual tree you may come up with. In such a situation you can use a DataTemplateSelector. How to implement...

Coding Katas – Improving the mechanics of coding

14 Feb 2011 If only one could code straight from the brain – Alas, we aren’t there yet. If you want to reduce the impedance between a programming idea in your mind and the act of coding you can do exercises that concentrate on reducing that impedance. This is what Code Katas are:...