ImageResourceConverter.Convert(Object, Type, Object, CultureInfo) 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.
Converts embedded image resource ID to it ImageSource.
public object? Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture);
Parameters
- value
- System.Object
The value to convert.
- targetType
- System.Type
The type of the binding target property. This is not implemented.
- parameter
- System.Object
Additional parameter for the converter to handle. This is not implemented.
- culture
- System.Globalization.CultureInfo
The culture to use in the converter. This is not implemented.
Returns
The ImageSource related to the provided resource ID of the embedded image. If it's null it will returns null.