Class LocalizationManager
A localization manager class.
Inheritance
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.dll
Syntax
public class LocalizationManager : Object, INotifyPropertyChanged
Constructors
LocalizationManager()
Declaration
public LocalizationManager()
Fields
ResourceKeyProperty
Identifies the ResourceKey attached property.
Declaration
public static readonly DependencyProperty ResourceKeyProperty
Field Value
System.Windows.DependencyProperty
|
Properties
Culture
A specific culture to follow.
Declaration
public CultureInfo Culture { get; set; }
Property Value
System.Globalization.CultureInfo
|
DefaultCulture
Default culture to follow if the specific one is null. This is an easy way to override the culture without instantiating a new manager.
Declaration
public static CultureInfo DefaultCulture { get; set; }
Property Value
System.Globalization.CultureInfo
|
DefaultResourceManager
Default resource manager to follow if the specific one is null. This is an easy way to override the resource manager without instantiating a new manager.
Declaration
public static ResourceManager DefaultResourceManager { get; set; }
Property Value
System.Resources.ResourceManager
|
Manager
Holder of the only possible Localization Manager.
Declaration
public static LocalizationManager Manager { get; set; }
Property Value
LocalizationManager
|
ResourceManager
Gets or sets specific resource manager.
Declaration
public ResourceManager ResourceManager { get; set; }
Property Value
System.Resources.ResourceManager
|
UseDynamicLocalization
Gets or sets whether the dynamic localization is enabled.
Declaration
public static bool UseDynamicLocalization { get; set; }
Property Value
System.Boolean
|
Methods
GetResourceKey(DependencyObject)
Returns the value of the ResourceKey property related to the specified object.
Declaration
public static string GetResourceKey(DependencyObject element)
Parameters
System.Windows.DependencyObject
element
The item to check. |
Returns
System.String
|
GetString(String)
Returns a string related to the specified key.
Declaration
public static string GetString(string key)
Parameters
System.String
key
The key. |
Returns
System.String
|
GetStringOverride(String)
Returns a string related to the specified key and culture.
Declaration
public virtual string GetStringOverride(string key)
Parameters
System.String
key
The key. |
Returns
System.String
A value relative to the specified key. |
SetResourceKey(DependencyObject, String)
Set the value of the ResourceKey property related to the specified object.
Declaration
public static void SetResourceKey(DependencyObject element, string value)
Parameters
System.Windows.DependencyObject
element
The item to be initialized. |
System.String
value
The supplied value. |
Events
PropertyChanged
Occurs when a property value changes.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
System.ComponentModel.PropertyChangedEventHandler
|