Class
BooleanToDescendingSortOrderConverter

Represents a converter that converts bool values to and from SortOrder enumeration values.

Definition

Namespace:Telerik.Windows.Controls.FieldList.Editing

Assembly:Telerik.Windows.Controls.PivotFieldList.dll

Syntax:

cs-api-definition
[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 BooleanToDescendingSortOrderConverter : IValueConverter

Inheritance: objectBooleanToDescendingSortOrderConverter

Implements: IValueConverter

Constructors

BooleanToDescendingSortOrderConverter()

Declaration

cs-api-definition
public BooleanToDescendingSortOrderConverter()

Methods

Convert(object, Type, object, CultureInfo)

Converts a bool value to a SortOrder enumeration value.

Declaration

cs-api-definition
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)

Parameters

value

object

The bool value to convert.

targetType

Type

This parameter is not used.

parameter

object

This parameter is not used.

culture

CultureInfo

This parameter is not used.

Returns

object

Descending if value is true; otherwise, Ascending.

ConvertBack(object, Type, object, CultureInfo)

Converts a SortOrder enumeration value to a bool value.

Declaration

cs-api-definition
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)

Parameters

value

object

A SortOrder enumeration value.

targetType

Type

This parameter is not used.

parameter

object

This parameter is not used.

culture

CultureInfo

This parameter is not used.

Returns

object

true if value is Descending; otherwise, false.