Telerik blogs

With the Q1 2009 SP2 release of RadControls for Silverlight we introduced an enhancement of the LocalizationManager class. Two new properties were added to enrich the localization support in the suite - DefaultCulture and DefaultResourceManager. With the new properties you no longer have to always create an instance of the LocalizationManager. Here is a brief description of the two properties:

  • DefaultCulture
    A static property of type System.Globalization.CultureInfo.
    Use this one to change localized values without changing the UI culture of the current thread.
  • DefaultResourceManager
    A static property of type System.Resources.ResourceManager.
    Use this one to change localized values using a new resource manager, i.e. a new resource file.

Example:

The attached example demonstrates how LocalizationManager's DefaultCulture and DefaultResourceManager properties work in conjunction with the thread's UI culture.

Localization_for_WPF.RadGridView_example.20090530


About the Author

Valio Stoychev

Valentin Stoychev (@ValioStoychev) for long has been part of Telerik and worked on almost every UI suite that came out of Telerik. Valio now works as a Product Manager and strives to make every customer a successful customer.

 

Related Posts

Comments

Comments are disabled in preview mode.