ColorToBrushConverter Class

Summary

Converts a Color to an IBrush.
Namespace
Avalonia.Markup.Xaml.Converters
Interfaces
Base Types
  • object
graph BT Type-->Base0["object"] Type-.->Interface0["IValueConverter"] click Interface0 "/api/Avalonia.Data.Converters/IValueConverter" Type["ColorToBrushConverter"] class Type type-node

Syntax

public class ColorToBrushConverter : IValueConverter

Methods

Name Value Summary
Convert(object, Type) object
Converts a Color to an IBrush if the arguments are of the correct type.
static
Convert(object, Type, object, CultureInfo) object
Converts a Color to an IBrush if the arguments are of the correct type.
ConvertBack(object, Type) object
Converts an ISolidColorBrush to a Color if the arguments are of the correct type.
static
ConvertBack(object, Type, object, CultureInfo) object
Converts an ISolidColorBrush to a Color if the arguments are of the correct type.