Class BooleanToAscendingSortOrderConverter
Represents a converter that converts System.Boolean values to and from SortOrder enumeration values.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Controls.FieldList.Editing
Assembly: Telerik.Windows.Controls.PivotFieldList.dll
Syntax
[Obsolete("This class is obsolete since Q1 2014 SP1 and should not be used. It will be deleted into the future versions. Use Telerik.Windows.Controls.FieldList.Editing.BooleanToSortOrderConverter instead.")]
public class BooleanToAscendingSortOrderConverter : 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. |