ClassCornerRadiusToThicknessConverter
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
CornerRadiusToThicknessConverter()
Declaration
public CornerRadiusToThicknessConverter()
Properties
Instance
Gets a static instance of the class.
Declaration
public static IValueConverter Instance { get; }
Property Value
IValueConverter
Methods
Convert(object, Type, object, CultureInfo)
Converts a CornerRadius to a Thickness.
Declaration
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
value
The CornerRadius value to convert.
targetType
The type of the binding target property.
parameter
The converter parameter to use.
culture
The culture to use in the converter.
Returns
A Thickness with values mapped from the CornerRadius components.
ConvertBack(object, Type, object, CultureInfo)
Converts a Thickness back to a CornerRadius.
Declaration
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
value
The Thickness value to convert back.
targetType
The type of the binding target property.
parameter
The converter parameter to use.
culture
The culture to use in the converter.
Returns
A CornerRadius with values mapped from the Thickness components.