Silverlight Quick Tip: How to get localized resources from RESX file in code behind

October 21, 2009

It looks like Iโ€™m using too much resources and localizing too much applications lately :) This time Iโ€™ll show how to use localized resources from the RESX files. Here I already explained how to create the RESX files for Silverlight (by the way the article is relevant also for Visual Studio 2010 Beta 2 & Silverlight 3), and how to use those resources from XAML. In some cases, though, it is needed to use those resources from code behind. In my scenario I had to create value converter, which converts some Boolean value to string representation and for...