Class
CornerRadiusToThicknessConverter

Converts CornerRadius to Thickness and converts back Thickness to CornerRadius.

Definition

Namespace:Telerik.Maui.Controls

Assembly:Telerik.Maui.Controls.dll

Syntax:

cs-api-definition
public class CornerRadiusToThicknessConverter : IValueConverter

Inheritance: objectCornerRadiusToThicknessConverter

Implements: IValueConverter

Constructors

CornerRadiusToThicknessConverter()

Declaration

cs-api-definition
public CornerRadiusToThicknessConverter()

Properties

Instance

Gets a static instance of the class.

Declaration

cs-api-definition
public static IValueConverter Instance { get; }

Property Value

IValueConverter

Methods

Convert(object, Type, object, CultureInfo)

Converts a CornerRadius to a Thickness.

Declaration

cs-api-definition
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)

Parameters

value

object

The CornerRadius value to convert.

targetType

Type

The type of the binding target property.

parameter

object

The converter parameter to use.

culture

CultureInfo

The culture to use in the converter.

Returns

object

A Thickness with values mapped from the CornerRadius components.

ConvertBack(object, Type, object, CultureInfo)

Converts a Thickness back to a CornerRadius.

Declaration

cs-api-definition
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)

Parameters

value

object

The Thickness value to convert back.

targetType

Type

The type of the binding target property.

parameter

object

The converter parameter to use.

culture

CultureInfo

The culture to use in the converter.

Returns

object

A CornerRadius with values mapped from the Thickness components.