Class ResourceNameToResourceStringConverter
Value converter that look up for the source string in based on culture with the help of LocalizationResourceAccessor and returns its value, if found.
Inheritance
Implements
Namespace: Syncfusion.Windows.Shared
Assembly: Syncfusion.Shared.WPF.dll
Syntax
public class ResourceNameToResourceStringConverter : Object, IValueConverter
Constructors
ResourceNameToResourceStringConverter()
Declaration
public ResourceNameToResourceStringConverter()
Methods
Convert(Object, Type, Object, CultureInfo)
Take the source string as a resource name that will be looked up in the App Resources. If the resource exists, the value is returned.
Declaration
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The resource name to get localized resource string. |
System.Type | targetType | The type of the target property, as a type reference. |
System.Object | parameter | Optional parameter. resource name to get localized resource sting. |
System.Globalization.CultureInfo | culture | Current UI culture. |
Returns
Type | Description |
---|---|
System.Object | The string corresponding to the resource name. |
ConvertBack(Object, Type, Object, CultureInfo)
Not implemented.
Declaration
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The source string being passed to the target. |
System.Type | targetType | The type of the target property, as a type reference. |
System.Object | parameter | Optional parameter. Not used. |
System.Globalization.CultureInfo | culture | The language of the conversion. |
Returns
Type | Description |
---|---|
System.Object | The value to be passed to the target dependency property. |
GetResourceAccessor()
Returns the LocalizationResourceAccessor associated with control assembly.
Declaration
protected virtual LocalizationResourceAccessor GetResourceAccessor()
Returns
Type |
---|
LocalizationResourceAccessor |