Class IconSourceElementConverter
- Namespace
- Wpf.Ui.Converters
- Assembly
- Wpf.Ui.dll
Converts an IconSourceElement to an IconElement.
public class IconSourceElementConverter : IValueConverter
- Inheritance
-
IconSourceElementConverter
- Implements
- Inherited Members
Methods
Convert(object?, Type, object?, CultureInfo)
Converts a value to an IconElement.
public object? Convert(object? value, Type targetType, object? parameter, CultureInfo culture)
Parameters
valueobjectThe value to convert.
targetTypeTypeThe type of the binding target property.
parameterobjectThe converter parameter.
cultureCultureInfoThe culture to use in the converter.
Returns
- object
The converted IconElement.
ConvertBack(object?, Type, object?, CultureInfo)
Converts an IconElement back to an IconSourceElement.
public object ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture)
Parameters
valueobjectThe value to convert.
targetTypeTypeThe type of the binding target property.
parameterobjectThe converter parameter.
cultureCultureInfoThe culture to use in the converter.
Returns
- object
The converted IconSourceElement.