Class EnumToBooleanConverter
Represents converter, which converts System.Enum types to and from a boolean value using the given parameter.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.dll
Syntax
public class EnumToBooleanConverter : IValueConverter
Remarks
The System.Enum can be with System.FlagsAttribute. Characters: ',' or ';' can be used to split multiple values passed in the given parameter.
Constructors
EnumToBooleanConverter()
Declaration
public EnumToBooleanConverter()
Methods
Convert(Object, Type, Object, CultureInfo)
Converts a System.Enum value to a Boolean one if it is one from the
specified in the parameter
values.
Declaration
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
System.Object
value
The System.Enum value . |
System.Type
targetType
This parameter is not used. |
System.Object
parameter
One or more values, which will be check for equality
against the passed |
System.Globalization.CultureInfo
culture
This parameter is not used. |
Returns
System.Object
A boolean value indicating whether the given |
ConvertBack(Object, Type, Object, CultureInfo)
Converts the Boolean value back to the first System.Enum value passed in the
parameter
.
Declaration
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
System.Object
value
The Boolean value. |
System.Type
targetType
This parameter is not used. |
System.Object
parameter
One or more System.Enum values. The first one will be return if the |
System.Globalization.CultureInfo
culture
This parameter is not used. |
Returns
System.Object
First System.Enum value from the |