Convert(Object, Type) 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 static Object? Convert(
Object? value,
Type? targetType
)
Public Shared Function Convert (
value As Object,
targetType As Type
) As Object
static member Convert :
value : Object *
targetType : Type -> Object
Parameters
Return Value
Object
If value is a Color and targetType is IBrush then converts the color to a solid color brush.
See Also
Reference
ColorToBrushConverter Class
Convert Overload
Avalonia.Markup.Xaml.Converters Namespace