Class NumberToVisibilityConverter
Represents a converter that converts a number value to Visibility value.
Inheritance
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.dll
Syntax
public class NumberToVisibilityConverter : Object, IValueConverter
Constructors
NumberToVisibilityConverter()
Declaration
public NumberToVisibilityConverter()
Methods
Convert(Object, Type, Object, CultureInfo)
Converts a number value (double or integer) to visibility. If the value is less than or equal to 0, returns Collapsed, otherwise returns Visible.
Declaration
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
System.Object
value
|
System.Type
targetType
|
System.Object
parameter
|
System.Globalization.CultureInfo
culture
|
Returns
System.Object
Visibility. |
ConvertBack(Object, Type, Object, CultureInfo)
Converts Visibility to number - if is Visible returns 1, otherwise returns 0.
Declaration
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
System.Object
value
|
System.Type
targetType
|
System.Object
parameter
|
System.Globalization.CultureInfo
culture
|
Returns
System.Object
The Visibility value. |