New to Telerik UI for WPFStart a free 30-day trial

A localization manager class.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.dll

Syntax:

C#
public class LocalizationManager : INotifyPropertyChanged

Inheritance: objectLocalizationManager

Derived Classes: ScheduleViewLocalizationManager

Implements: INotifyPropertyChanged

Constructors

C#
public LocalizationManager()

Fields

ResourceKeyProperty

DependencyProperty

Identifies the ResourceKey attached property.

C#
public static readonly DependencyProperty ResourceKeyProperty

Properties

A specific culture to follow.

C#
public CultureInfo Culture { get; set; }

Default culture to follow if the specific one is null. This is an easy way to override the culture without instantiating a new manager.

C#
public static CultureInfo DefaultCulture { get; set; }

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.

C#
public static ResourceManager DefaultResourceManager { get; set; }

Holder of the only possible Localization Manager.

C#
public static LocalizationManager Manager { get; set; }

Gets or sets specific resource manager.

C#
public ResourceManager ResourceManager { get; set; }

Gets or sets whether the dynamic localization is enabled.

C#
public static bool UseDynamicLocalization { get; set; }

Methods

Returns the value of the ResourceKey property related to the specified object.

C#
public static string GetResourceKey(DependencyObject element)
Parameters:elementDependencyObject

The item to check.

Returns:

string

Returns a string related to the specified key.

C#
public static string GetString(string key)
Parameters:keystring

The key.

Returns:

string

Returns a string related to the specified key and culture.

C#
public virtual string GetStringOverride(string key)
Parameters:keystring

The key.

Returns:

string

A value relative to the specified key.

Set the value of the ResourceKey property related to the specified object.

C#
public static void SetResourceKey(DependencyObject element, string value)
Parameters:elementDependencyObject

The item to be initialized.

valuestring

The supplied value.

Events

Occurs when a property value changes.

C#
public event PropertyChangedEventHandler PropertyChanged

Implements: INotifyPropertyChanged.PropertyChanged