Enhancing the Localization Support of RadControls for Silverlight and WPF

Saturday, May 30, 2009 by XAML Team | Comments 0

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

Add comment

  1. Formatting options
       
     
     
     
     
       
  2. (optional, emails won't be shown on public pages)
  3. (optional)