Represents converter, which converts Enum types to and from a boolean value using the given parameter.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.dll
Syntax:
public class EnumToVisibilityConverter : IValueConverter
Inheritance: objectEnumToVisibilityConverter
Implements:
Constructors
public EnumToVisibilityConverter()
Methods
Converts a Enum value to a Boolean one if it is one from the
specified in the parameter values.
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
The Enum value .
targetTypeTypeThis parameter is not used.
parameterobjectOne or more values, which will be check for equality
against the passed value.Characters: ',' or ';' can be used to split
multiple values.
This parameter is not used.
Returns:A boolean value indicating whether the given value is one from the specified in
the parameter. Returns null if the value or
parameter are null.
Converts the Boolean value back to the first Enum value passed in the
parameter.
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
The Boolean value.
targetTypeTypeThis parameter is not used.
parameterobjectOne or more Enum values. The first one will be return if the value
is true.
This parameter is not used.
Returns:First Enum value from the parameter if the value is true,
otherwise .