C# Class Core2D.Avalonia.Converters.ObjectEqualsConverter

Converts a binding value object from object to bool True if value is equal to parameter otherwise return False.
Inheritance: IValueConverter
Show file Open project: Core2D/Core2D

Public Properties

Property Type Description
Instance ObjectEqualsConverter

Public Methods

Method Description
Convert ( object value, Type targetType, object parameter, CultureInfo culture ) : object

Convert value to boolean, true if matches parameter.

ConvertBack ( object value, Type targetType, object parameter, CultureInfo culture ) : object

Convert boolean to parameter value, returning parameter if true.

Method Details

Convert() public method

Convert value to boolean, true if matches parameter.
public Convert ( object value, Type targetType, object parameter, CultureInfo culture ) : object
value object The value to convert.
targetType System.Type The type of the target.
parameter object A user-defined parameter.
culture System.Globalization.CultureInfo The culture to use.
return object

ConvertBack() public method

Convert boolean to parameter value, returning parameter if true.
public ConvertBack ( object value, Type targetType, object parameter, CultureInfo culture ) : object
value object The value to convert.
targetType System.Type The type of the target.
parameter object A user-defined parameter.
culture System.Globalization.CultureInfo The culture to use.
return object

Property Details

Instance public static property

Gets an instance of a ObjectEqualsConverter.
public static ObjectEqualsConverter,Core2D.Avalonia.Converters Instance
return ObjectEqualsConverter