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.UI.Xaml.Core
Assembly: Syncfusion.Core.WinUI.dll
Syntax
public class ResourceNameToResourceStringConverter : Object, IValueConverter
Constructors
ResourceNameToResourceStringConverter()
Declaration
public ResourceNameToResourceStringConverter()
Methods
Convert(Object, Type, Object, String)
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, otherwise.
Declaration
public object Convert(object value, Type targetType, object parameter, string language)
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.String | language | The language of the conversion. |
Returns
Type | Description |
---|---|
System.Object | The string corresponding to the resource name. |
ConvertBack(Object, Type, Object, String)
Not implemented.
Declaration
public object ConvertBack(object value, Type targetType, object parameter, string language)
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.String | language | 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 |