C# Класс WPFLocalizeExtension.Extensions.BLoc

A localization extension based on Binding.
Наследование: System.Windows.Data.Binding, INotifyPropertyChanged, IDictionaryEventListener, IDisposable
Показать файл Открыть проект

Открытые методы

Метод Описание
BLoc ( ) : System

Initializes a new instance of the BLoc class.

BLoc ( string key ) : System

Initializes a new instance of the BLoc class.

ClearResourceBuffer ( ) : void

Clears the common resource buffer.

Dispose ( ) : void

Removes the listener from the dictionary.

FormatOutput ( ) : object

This function returns the properly prepared output of the markup extension.

ResourceChanged ( DependencyObject sender, DictionaryEventArgs e ) : void

This method is called when the resource somehow changed.

Защищенные методы

Метод Описание
GetForcedCultureOrDefault ( ) : CultureInfo

If Culture property defines a valid CultureInfo, a CultureInfo instance will get created and returned, otherwise LocalizeDictionary.Culture will get returned.

Приватные методы

Метод Описание
RaisePropertyChanged ( string property ) : void

Notify that a property has changed

SafeAddItemToResourceBuffer ( string key, object item ) : void

Adds an item to the resource buffer (threadsafe).

SafeRemoveItemFromResourceBuffer ( string key ) : void

Removes an item from the resource buffer (threadsafe).

UpdateNewValue ( ) : void

Описание методов

BLoc() публичный Метод

Initializes a new instance of the BLoc class.
public BLoc ( ) : System
Результат System

BLoc() публичный Метод

Initializes a new instance of the BLoc class.
public BLoc ( string key ) : System
key string The resource identifier.
Результат System

ClearResourceBuffer() публичный статический Метод

Clears the common resource buffer.
public static ClearResourceBuffer ( ) : void
Результат void

Dispose() публичный Метод

Removes the listener from the dictionary.
public Dispose ( ) : void
Результат void

FormatOutput() публичный Метод

This function returns the properly prepared output of the markup extension.
public FormatOutput ( ) : object
Результат object

GetForcedCultureOrDefault() защищенный Метод

If Culture property defines a valid CultureInfo, a CultureInfo instance will get created and returned, otherwise LocalizeDictionary.Culture will get returned.
/// thrown if the parameter Culture don't defines a valid ///
protected GetForcedCultureOrDefault ( ) : CultureInfo
Результат System.Globalization.CultureInfo

ResourceChanged() публичный Метод

This method is called when the resource somehow changed.
public ResourceChanged ( DependencyObject sender, DictionaryEventArgs e ) : void
sender System.Windows.DependencyObject The sender.
e WPFLocalizeExtension.Engine.DictionaryEventArgs The event arguments.
Результат void