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

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

Открытые свойства

Свойство Тип Описание
ConverterParameterProperty System.Windows.DependencyProperty
ConverterProperty System.Windows.DependencyProperty
ForceCultureProperty System.Windows.DependencyProperty
KeyProperty System.Windows.DependencyProperty

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

Метод Описание
ClearResourceBuffer ( ) : void

Clears the common resource buffer.

Dispose ( ) : void

Removes the listener from the dictionary.

FELoc ( ) : System

Initializes a new instance of the BLoc class.

FELoc ( string key ) : System

Initializes a new instance of the BLoc class.

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.

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

Метод Описание
DependencyPropertyChanged ( DependencyObject obj, System.Windows.DependencyPropertyChangedEventArgs args ) : void

Indicates, that the key changed.

GetAttachedProperties ( DependencyObject obj ) : IList
GetDependencyProperties ( Object element ) : List

Based on http://social.msdn.microsoft.com/Forums/en/wpf/thread/580234cb-e870-4af1-9a91-3e3ba118c89c

RaisePropertyChanged ( string property ) : void

Notify that a property has changed

RegisterParentNotifier ( ) : void
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

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

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

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

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

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

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

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

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

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

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 DictionaryEventArgs The event arguments.
Результат void

Описание свойств

ConverterParameterProperty публичное статическое свойство

DependencyProperty ConverterParameter.
public static DependencyProperty,System.Windows ConverterParameterProperty
Результат System.Windows.DependencyProperty

ConverterProperty публичное статическое свойство

DependencyProperty Converter to set the IValueConverter used to adapt to the target.
public static DependencyProperty,System.Windows ConverterProperty
Результат System.Windows.DependencyProperty

ForceCultureProperty публичное статическое свойство

DependencyProperty ForceCulture.
public static DependencyProperty,System.Windows ForceCultureProperty
Результат System.Windows.DependencyProperty

KeyProperty публичное статическое свойство

DependencyProperty Key to set the resource key.
public static DependencyProperty,System.Windows KeyProperty
Результат System.Windows.DependencyProperty