ClassWidthToColumnsConverter
Class
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:
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
The available width.
targetType
The type of the binding target property.
parameter
Optional minimum desired item width.
culture
The culture to use in the converter.
Returns
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
targetType
parameter
culture
Returns