Class CenterConverter
Given a double value, this converter returns 1/2 of it. Used to center labels, etc. based on ActualWidth/ActualHeight.
Inheritance
Namespace: Telerik.Windows.Controls.Charting
Assembly: Telerik.Windows.Controls.Charting.dll
Syntax
public class CenterConverter : Object, IValueConverter
Constructors
CenterConverter()
Declaration
public CenterConverter()
Methods
Convert(Object, Type, Object, CultureInfo)
Converts the value.
Declaration
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
System.Object
value
The value produced by the binding source. |
System.Type
targetType
The type of the binding target property. |
System.Object
parameter
The converter parameter to use. |
System.Globalization.CultureInfo
culture
The culture to use in the converter. |
Returns
System.Object
A converted value. If the method returns null, the valid null value is used. |
ConvertBack(Object, Type, Object, CultureInfo)
Not implemented.
Declaration
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
System.Object
value
|
System.Type
targetType
|
System.Object
parameter
|
System.Globalization.CultureInfo
culture
|
Returns
System.Object
|