Converts CornerRadius to Thickness and converts back Thickness to CornerRadius.
Definition
Namespace:Telerik.Maui.Controls
Assembly:Telerik.Maui.Controls.dll
Syntax:
public class CornerRadiusToThicknessConverter : IValueConverter
Inheritance: objectCornerRadiusToThicknessConverter
Implements:
Constructors
public CornerRadiusToThicknessConverter()
Properties
Instance
IValueConverter
Gets a static instance of the class.
public static IValueConverter Instance { get; }
Methods
Converts a CornerRadius to a Thickness.
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
The CornerRadius value to convert.
targetTypeTypeThe type of the binding target property.
parameterobjectThe converter parameter to use.
cultureCultureInfoThe culture to use in the converter.
Returns:A Thickness with values mapped from the CornerRadius components.
Converts a Thickness back to a CornerRadius.
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
The Thickness value to convert back.
targetTypeTypeThe type of the binding target property.
parameterobjectThe converter parameter to use.
cultureCultureInfoThe culture to use in the converter.
Returns:A CornerRadius with values mapped from the Thickness components.