Convert(Object, Type, Object, CultureInfo) Method
Converts a Color to an IBrush if the arguments are of the correct type.
Definition
Namespace: Avalonia.Markup.Xaml.Converters
Assembly: Avalonia.Markup.Xaml (in Avalonia.Markup.Xaml.dll)
- C#
- VB
- F#
public Object? Convert(
Object? value,
Type targetType,
Object? parameter,
CultureInfo culture
)
Public Function Convert (
value As Object,
targetType As Type,
parameter As Object,
culture As CultureInfo
) As Object
abstract Convert :
value : Object *
targetType : Type *
parameter : Object *
culture : CultureInfo -> Object
override Convert :
value : Object *
targetType : Type *
parameter : Object *
culture : CultureInfo -> Object
Parameters
- Object
- The value.
- Type
- The target type.
- Object
- Not used.
- CultureInfo
- Not used.
Return Value
Object
If value is a Color and targetType is IBrush then converts the color to a solid color brush.
Implements
IValueConverter.Convert(Object, Type, Object, CultureInfo)See Also
Reference
ColorToBrushConverter Class
Convert Overload
Avalonia.Markup.Xaml.Converters Namespace