C# Class WPFLocalizeExtension.Providers.CSVEmbeddedLocalizationProvider

A singleton CSV provider that uses attached properties and the Parent property to iterate through the visual tree.
Inheritance: CSVLocalizationProviderBase
Afficher le fichier Open project: SeriousM/WPFLocalizationExtension

Méthodes publiques

Свойство Type Description
DefaultAssemblyProperty System.Windows.DependencyProperty
DefaultDictionaryProperty System.Windows.DependencyProperty

Méthodes publiques

Méthode Description
GetDefaultAssembly ( DependencyObject obj ) : string

Getter of DependencyProperty default assembly.

GetDefaultDictionary ( DependencyObject obj ) : string

Getter of DependencyProperty default dictionary.

GetLocalizedObject ( string key, DependencyObject target, CultureInfo culture ) : object

Get the localized object.

SetDefaultAssembly ( DependencyObject obj, string value ) : void

Setter of DependencyProperty default assembly.

SetDefaultDictionary ( DependencyObject obj, string value ) : void

Setter of DependencyProperty default dictionary.

Méthodes protégées

Méthode Description
GetAssembly ( DependencyObject target ) : string

Get the assembly from the context, if possible.

GetDictionary ( DependencyObject target ) : string

Get the dictionary from the context, if possible.

Private Methods

Méthode Description
AttachedPropertyChanged ( DependencyObject obj, System.Windows.DependencyPropertyChangedEventArgs args ) : void

Indicates, that one of the attached properties changed.

CSVEmbeddedLocalizationProvider ( ) : System

The singleton constructor.

ParentChangedAction ( DependencyObject obj ) : void

An action that will be called when a parent of one of the observed target objects changed.

Method Details

GetAssembly() protected méthode

Get the assembly from the context, if possible.
protected GetAssembly ( DependencyObject target ) : string
target System.Windows.DependencyObject The target object.
Résultat string

GetDefaultAssembly() public static méthode

Getter of DependencyProperty default assembly.
public static GetDefaultAssembly ( DependencyObject obj ) : string
obj System.Windows.DependencyObject The dependency object to get the default assembly from.
Résultat string

GetDefaultDictionary() public static méthode

Getter of DependencyProperty default dictionary.
public static GetDefaultDictionary ( DependencyObject obj ) : string
obj System.Windows.DependencyObject The dependency object to get the default dictionary from.
Résultat string

GetDictionary() protected méthode

Get the dictionary from the context, if possible.
protected GetDictionary ( DependencyObject target ) : string
target System.Windows.DependencyObject The target object.
Résultat string

GetLocalizedObject() public méthode

Get the localized object.
public GetLocalizedObject ( string key, DependencyObject target, CultureInfo culture ) : object
key string The key to the value.
target System.Windows.DependencyObject The target object.
culture System.Globalization.CultureInfo The culture to use.
Résultat object

SetDefaultAssembly() public static méthode

Setter of DependencyProperty default assembly.
public static SetDefaultAssembly ( DependencyObject obj, string value ) : void
obj System.Windows.DependencyObject The dependency object to set the default assembly to.
value string The assembly.
Résultat void

SetDefaultDictionary() public static méthode

Setter of DependencyProperty default dictionary.
public static SetDefaultDictionary ( DependencyObject obj, string value ) : void
obj System.Windows.DependencyObject The dependency object to set the default dictionary to.
value string The dictionary.
Résultat void

Property Details

DefaultAssemblyProperty public_oe static_oe property

DependencyProperty DefaultAssembly to set the fallback assembly.
public static DependencyProperty,System.Windows DefaultAssemblyProperty
Résultat System.Windows.DependencyProperty

DefaultDictionaryProperty public_oe static_oe property

DependencyProperty DefaultDictionary to set the fallback resource dictionary.
public static DependencyProperty,System.Windows DefaultDictionaryProperty
Résultat System.Windows.DependencyProperty