Class IsEqualToConverter
A converter that returns true if the object is equal to the parameter.
[ValueConversion(typeof(object), typeof(bool))]
public class IsEqualToConverter : GenericConverter<object, bool, object>, IValueConverter
- Inheritance
-
IsEqualToConverter
- Implements
- Inherited Members
Methods
Convert(object, object, CultureInfo)
Converts a value.
public override bool Convert(object value, object parameter, CultureInfo culture)
Parameters
value
objectThe value produced by the binding source.
parameter
objectThe converter parameter to use.
culture
CultureInfoThe culture to use in the converter.
Returns
- bool
A converted value. If the method returns null, the valid null value is used.
ConvertBack(bool, object, CultureInfo)
Converts a value.
public override object ConvertBack(bool value, object parameter, CultureInfo culture)
Parameters
value
boolThe value that is produced by the binding target.
parameter
objectThe converter parameter to use.
culture
CultureInfoThe culture to use in the converter.
Returns
- object
A converted value. If the method returns null, the valid null value is used.