Class BooleanToDescendingSortOrderConverter
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 BooleanToDescendingSortOrderConverter : Object, IValueConverter
Constructors
BooleanToDescendingSortOrderConverter()
Declaration
public BooleanToDescendingSortOrderConverter()
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
This parameter is not used. |
System.Globalization.CultureInfo
culture
This parameter is not used. |
Returns
System.Object
Descending if value is true; otherwise, Ascending. |
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
This parameter is not used. |
System.Globalization.CultureInfo
culture
This parameter is not used. |
Returns
System.Object
true if value is Descending; otherwise, false. |