Class BooleanToSortOrderConverter
Represents a converter that converts System.Boolean values to and from SortOrder enumeration values.
Inheritance
Namespace: Telerik.Windows.Controls.FieldList.Editing
Assembly: Telerik.Windows.Controls.PivotFieldList.dll
Syntax
public class BooleanToSortOrderConverter : Object, IValueConverter
Constructors
BooleanToSortOrderConverter()
Declaration
public BooleanToSortOrderConverter()
Methods
Convert(Object, Type, Object, CultureInfo)
Converts a System.Boolean value to a SortOrder enumeration value.
Declaration
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
System.Object
value
The System.Boolean value to convert. |
System.Type
targetType
This parameter is not used. |
System.Object
parameter
The parameter matching the current enum value. |
System.Globalization.CultureInfo
culture
This parameter is not used. |
Returns
System.Object
true if value matches the parameter and false otherwise. |
ConvertBack(Object, Type, Object, CultureInfo)
Converts a SortOrder enumeration value to a System.Boolean value.
Declaration
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
System.Object
value
A SortOrder enumeration value. |
System.Type
targetType
This parameter is not used. |
System.Object
parameter
The parameter matching the current enum value. |
System.Globalization.CultureInfo
culture
This parameter is not used. |
Returns
System.Object
true if value matches the parameter and false otherwise. |