Class
BorderThicknessToMarginConverter

Value converter that converts the Border's Thickness to Margin value.

Definition

Namespace:Telerik.UI.Xaml.Controls.Grid.View

Assembly:Telerik.WinUI.Controls.dll

Syntax:

cs-api-definition
public class BorderThicknessToMarginConverter : IValueConverter

Inheritance: objectBorderThicknessToMarginConverter

Implements: IValueConverter

Constructors

BorderThicknessToMarginConverter()

Declaration

cs-api-definition
public BorderThicknessToMarginConverter()

Methods

Convert(object, Type, object, string)

Convert a border's Thickness value to a Margin.

Declaration

cs-api-definition
public object Convert(object value, Type targetType, object parameter, string language)

Parameters

value

object

The source data being passed to the target.

targetType

Type

The type of the target property, as a type reference.

parameter

object

The format string.

language

string

The language of the conversion. Not used.

Returns

object

The formatted string.

ConvertBack(object, Type, object, string)

Not implemented.

Declaration

cs-api-definition
public object ConvertBack(object value, Type targetType, object parameter, string language)

Parameters

value

object

The source data being passed to the target.

targetType

Type

The type of the target property, as a type reference.

parameter

object

Optional parameter. Not used.

language

string

The language of the conversion. Not used.

Returns

object

The value to be passed to the target dependency property.