Enhancing the Localization Support of RadControls for Silverlight and WPF
Posted by: the telerik blogs,
on 30 May 2009 |
View original | Bookmarked: 0 time(s)
With the Q1 2009 SP2
release of RadControls for Silverlightwe introduced an enhancement of theLocalizationManager class. Two new properties wereadded toenrich the localization support in the suite- DefaultCulture and DefaultResourceManager. With the new properties you no longer have to alwayscreate an instance of theLocalizationManager. Here is a brief description of the two properties:
- DefaultCulture
A staticpropertyof typeSystem.Globalization.CultureInfo.
Use this one to change localized values without changing the UI culture of the current thread. - DefaultResourceManager
A static propertyof typeSystem.Resources.ResourceManager.
Use this one to change localized valuesusing a new resource manager, i.e.a new resource file.
Example:
The attached example demonstrates howLocalizationManager's DefaultCulture and DefaultResourceManager properties work in conjunction with the thread's UI culture.
Localization_for_WPF.RadGridView_example.20090530