ClassNegativeOffsetConverter
Converts a Thickness value to a negative offset used for layout positioning.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.dll
Syntax:
public class NegativeOffsetConverter : IValueConverter
Inheritance: objectNegativeOffsetConverter
Implements:
Constructors
NegativeOffsetConverter()
Declaration
public NegativeOffsetConverter()
Methods
Convert(object, Type, object, CultureInfo)
Converts a Thickness to a numeric offset based on the side(s) specified in parameter.
Declaration
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
value
The source value, expected to be a Thickness instance.
targetType
The type of the binding target property.
parameter
A comma-separated list of thickness sides to evaluate (for example, "Left" or "Bottom"). Defaults to "Left" when not provided.
culture
The culture to use in the converter.
Returns
A double representing the calculated offset, or 0d when value is not a Thickness.
ConvertBack(object, Type, object, CultureInfo)
Not supported. Throws NotImplementedException.
Declaration
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
value
targetType
parameter
culture
Returns