Class
BooleanToSortOrderConverter

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
public class BooleanToSortOrderConverter : IValueConverter

Inheritance: objectBooleanToSortOrderConverter

Implements: IValueConverter

Constructors

BooleanToSortOrderConverter()

Declaration

cs-api-definition
public BooleanToSortOrderConverter()

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

The parameter matching the current enum value.

culture

CultureInfo

This parameter is not used.

Returns

object

true if value matches the parameter and false otherwise.

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

The parameter matching the current enum value.

culture

CultureInfo

This parameter is not used.

Returns

object

true if value matches the parameter and false otherwise.