Class ThumbWidthToMarginConverter
Base class for value converter.
Implements
Namespace: Sartorius.SAF.Presentation.Controls
Assembly: Sartorius.SAF.Presentation.Controls.dll
Syntax
public class ThumbWidthToMarginConverter : ConverterExtensionBase, IValueConverter
Constructors
View SourceThumbWidthToMarginConverter()
Default constructor
Declaration
public ThumbWidthToMarginConverter()
ThumbWidthToMarginConverter(bool)
Declaration
public ThumbWidthToMarginConverter(bool isNegative)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | isNegative |
Properties
View SourceNegative
Indicates whether the calculated offset is negative
Declaration
public bool Negative { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
View SourceConvert(object, Type, object, CultureInfo)
Converts a value
Declaration
public override object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
| Type | Name | Description |
|---|---|---|
| object | value | The value generated by the binding source. |
| Type | targetType | The type of attachment target property. |
| object | parameter | The converter parameter to be used. |
| CultureInfo | culture | The culture to be used in the converter. |
Returns
| Type | Description |
|---|---|
| object | A converted value.If the method returns null, the valid null value is used. |