Converts an available width value to a column count for layouts such as .
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.dll
Syntax:
C#
public class WidthToColumnsConverter : IValueConverter
Inheritance: objectWidthToColumnsConverter
Implements:
Constructors
C#
public WidthToColumnsConverter()
Methods
Converts an available width to a column count. The optional converter parameter specifies the minimum desired item width.
C#
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
The available width.
targetTypeTypeThe type of the binding target property.
parameterobjectOptional minimum desired item width.
cultureCultureInfoThe culture to use in the converter.
Returns:The calculated number of columns, always at least 1.
Not supported. Throws NotSupportedException.
C#
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)