C# Class WPFLocalizeExtension.Providers.ResxLocalizationProvider

A singleton RESX provider that uses attached properties and the Parent property to iterate through the visual tree.
Inheritance: ResxLocalizationProviderBase
Mostrar archivo Open project: SeriousM/WPFLocalizationExtension Class Usage Examples

Public Properties

Property Type Description
DefaultAssemblyProperty System.Windows.DependencyProperty
DefaultDictionaryProperty System.Windows.DependencyProperty
IgnoreCaseProperty System.Windows.DependencyProperty

Public Methods

Method Description
GetDefaultAssembly ( DependencyObject obj ) : string

Getter of DependencyProperty default assembly.

GetDefaultDictionary ( DependencyObject obj ) : string

Getter of DependencyProperty default dictionary.

GetIgnoreCase ( DependencyObject obj ) : bool

Getter of DependencyProperty ignore case flag.

Reset ( ) : void

Resets the instance that is used for the ResxLocationProvider

SetDefaultAssembly ( DependencyObject obj, string value ) : void

Setter of DependencyProperty default assembly.

SetDefaultDictionary ( DependencyObject obj, string value ) : void

Setter of DependencyProperty default dictionary.

SetIgnoreCase ( DependencyObject obj, bool value ) : void

Setter of DependencyProperty ignore case flag.

Protected Methods

Method 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

Method Description
DefaultAssemblyChanged ( DependencyObject obj, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Indicates, that the DefaultAssemblyProperty attached property changed.

DefaultDictionaryChanged ( DependencyObject obj, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Indicates, that the DefaultDictionaryProperty attached property changed.

IgnoreCaseChanged ( DependencyObject obj, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Indicates, that the IgnoreCaseProperty attached property changed.

ParentChangedAction ( DependencyObject obj ) : void

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

ResxLocalizationProvider ( ) : System

The singleton constructor.

Method Details

GetAssembly() protected method

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

GetDefaultAssembly() public static method

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

GetDefaultDictionary() public static method

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

GetDictionary() protected method

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

GetIgnoreCase() public static method

Getter of DependencyProperty ignore case flag.
public static GetIgnoreCase ( DependencyObject obj ) : bool
obj System.Windows.DependencyObject The dependency object to get the ignore case flag from.
return bool

Reset() public static method

Resets the instance that is used for the ResxLocationProvider
public static Reset ( ) : void
return void

SetDefaultAssembly() public static method

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.
return void

SetDefaultDictionary() public static method

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.
return void

SetIgnoreCase() public static method

Setter of DependencyProperty ignore case flag.
public static SetIgnoreCase ( DependencyObject obj, bool value ) : void
obj System.Windows.DependencyObject The dependency object to set the ignore case flag to.
value bool The ignore case flag.
return void

Property Details

DefaultAssemblyProperty public_oe static_oe property

DependencyProperty DefaultAssembly to set the fallback assembly.
public static DependencyProperty,System.Windows DefaultAssemblyProperty
return System.Windows.DependencyProperty

DefaultDictionaryProperty public_oe static_oe property

DependencyProperty DefaultDictionary to set the fallback resource dictionary.
public static DependencyProperty,System.Windows DefaultDictionaryProperty
return System.Windows.DependencyProperty

IgnoreCaseProperty public_oe static_oe property

DependencyProperty IgnoreCase to set the case sensitivity.
public static DependencyProperty,System.Windows IgnoreCaseProperty
return System.Windows.DependencyProperty