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
valueobjectThe value produced by the binding source.
parameterobjectThe converter parameter to use.
cultureCultureInfoThe 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
valueboolThe value that is produced by the binding target.
parameterobjectThe converter parameter to use.
cultureCultureInfoThe culture to use in the converter.
Returns
- object
A converted value. If the method returns null, the valid null value is used.