Skip to main content

Avalonia.Controls.Converters Namespace

Classes

ColorToDisplayNameConverterGets the approximated display name for the color.
ColorToHexConverterConverts a color to a hex string and vice versa.
CornerRadiusFilterConverterConverts an existing CornerRadius struct to a new CornerRadius struct, with filters applied to extract only the specified corners, leaving the others set to 0.
CornerRadiusToDoubleConverterConverts one corner of a CornerRadius to its double value.
DoNothingForNullConverterConverter that will do nothing (not update bound values) when a null value is encountered. This converter enables binding nullable with non-nullable properties in some scenarios.
EnumToBoolConverterConverter to convert an enum value to bool by comparing to the given parameter. Both value and parameter must be of the same enum type.
MarginMultiplierConverter 
MenuScrollingVisibilityConverter 
PlatformKeyGestureConverterConverts a KeyGesture to a string, formatting it according to the current platform's style guidelines.
StringFormatConverterCalls Format(String, Object[]) on the passed in values, where the first element in the list is the string, and everything after it is passed into the object array in order.
ToBrushConverterConverts the given value into an IBrush when a conversion is possible.
ToColorConverterConverts the given value into a Color when a conversion is possible.

Enumerations

CornersDefines constants that specify one or more corners of a CornerRadius.