Skip to main content

ColorToBrushConverter Class

Converts a Color to an IBrush.

Definition

Namespace: Avalonia.Markup.Xaml.Converters
Assembly: Avalonia.Markup.Xaml (in Avalonia.Markup.Xaml.dll)

public class ColorToBrushConverter : IValueConverter
View Source
InheritanceObject → ColorToBrushConverter
ImplementsIValueConverter

Constructors

ColorToBrushConverter()Initializes a new instance of the ColorToBrushConverter class

Methods

Convert(Object, Type)Converts a Color to an IBrush if the arguments are of the correct type.
Convert(Object, Type, Object, CultureInfo)Converts a Color to an IBrush if the arguments are of the correct type.
ConvertBack(Object, Type)Converts an ISolidColorBrush to a Color if the arguments are of the correct type.
ConvertBack(Object, Type, Object, CultureInfo)Converts an ISolidColorBrush to a Color if the arguments are of the correct type.
Equals(Object)Determines whether the specified object is equal to the current object.
(Inherited from Object)
Finalize()Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCode()Serves as the default hash function.
(Inherited from Object)
GetType()Gets the Type of the current instance.
(Inherited from Object)
MemberwiseClone()Creates a shallow copy of the current Object.
(Inherited from Object)
ToString()Returns a string that represents the current object.
(Inherited from Object)

See Also

Reference

Avalonia.Markup.Xaml.Converters Namespace