Geeks With Blogs
The Coding Bloke An ordinary bloke trying to keep up with the world of programming May 2010 Entries
A Generic Boolean Value Converter
On fairly regular intervals a question on Stackoverflow like this one: Silverlight Bind to inverse of boolean property value appears. The same answers also regularly appear. They all involve an implementation of IValueConverter and basically include the same boilerplate code. The required output type sometimes varies, other examples that have passed by are Boolean to Brush and Boolean to String conversions. Yet the code remains pretty much the same. There is therefore a good case to create a generic ......

Posted On Friday, May 28, 2010 1:07 PM

Silverlight IConvertible TypeConverter
I recently answered the following question on stackoverflow: Silverlight 3 custom control: only ‘int’ as numeric type for a property? [e.g. long or int64 seems to break] I quickly knocked up the class ConvertibleTypeConverter<... that I posted in the question (listed later here as well). Afterward I fully expected to find that of the usual clever “bods who blog” to have covered this probably with a better solution than I. So far though I’ve not found one so I thought I’d blog it myself. The ......

Posted On Friday, May 14, 2010 8:44 PM

Copyright © codingbloke | Powered by: