Class BooleanToAscendingSortOrderConverter
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 BooleanToAscendingSortOrderConverter : Object, IValueConverter
Constructors
BooleanToAscendingSortOrderConverter()
Declaration
public BooleanToAscendingSortOrderConverter()
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
Ascending if value is true; otherwise, Descending. |
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 Ascending; otherwise, false. |