Class
WidthToColumnsConverter

Converts an available width value to a column count for layouts such as .

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.dll

Syntax:

cs-api-definition
public class WidthToColumnsConverter : IValueConverter

Inheritance: objectWidthToColumnsConverter

Implements: IValueConverter

Constructors

WidthToColumnsConverter()

Declaration

cs-api-definition
public WidthToColumnsConverter()

Methods

Convert(object, Type, object, CultureInfo)

Converts an available width to a column count. The optional converter parameter specifies the minimum desired item width.

Declaration

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

Parameters

value

object

The available width.

targetType

Type

The type of the binding target property.

parameter

object

Optional minimum desired item width.

culture

CultureInfo

The culture to use in the converter.

Returns

object

The calculated number of columns, always at least 1.

ConvertBack(object, Type, object, CultureInfo)

Not supported. Throws NotSupportedException.

Declaration

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

Parameters

value

object

targetType

Type

parameter

object

culture

CultureInfo

Returns

object