ResourceNameToResourceStringConverter.Convert Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
public object Convert (object value, Type targetType, object parameter, string language);
abstract member Convert : obj * Type * obj * string -> obj
override this.Convert : obj * Type * obj * string -> obj
Public Function Convert (value As Object, targetType As Type, parameter As Object, language As String) As Object
Parameters
- value
- Object
The source string being passed to the target.
- targetType
- Type
The type of the target property, as a type reference.
- parameter
- Object
Optional parameter. Not used.
- language
- String
The language of the conversion.
Returns
The string corresponding to the resource name.
Implements
Microsoft.UI.Xaml.Data.IValueConverter.Convert(System.Object,System.Type,System.Object,System.String)