Class
NegativeOffsetConverter

Converts a Thickness value to a negative offset used for layout positioning.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.dll

Syntax:

cs-api-definition
public class NegativeOffsetConverter : IValueConverter

Inheritance: objectNegativeOffsetConverter

Implements: IValueConverter

Constructors

NegativeOffsetConverter()

Declaration

cs-api-definition
public NegativeOffsetConverter()

Methods

Convert(object, Type, object, CultureInfo)

Converts a Thickness to a numeric offset based on the side(s) specified in parameter.

Declaration

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

Parameters

value

object

The source value, expected to be a Thickness instance.

targetType

Type

The type of the binding target property.

parameter

object

A comma-separated list of thickness sides to evaluate (for example, "Left" or "Bottom"). Defaults to "Left" when not provided.

culture

CultureInfo

The culture to use in the converter.

Returns

object

A double representing the calculated offset, or 0d when value is not a Thickness.

ConvertBack(object, Type, object, CultureInfo)

Not supported. Throws NotImplementedException.

Declaration

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

Parameters

value

object

targetType

Type

parameter

object

culture

CultureInfo

Returns

object