Class EqualityConverter
General version of BooleanToVisibilityConverter that lets the "true" and "false" values be specified in xaml.
Implements
Inherited Members
Namespace: Phoenix.Aruba.Converters
Assembly: Phoenix.Plugin.Aruba.dll
Syntax
public class EqualityConverter : IMultiValueConverter
Methods
View SourceConvert(object[], Type, object, CultureInfo)
Converts a given input value to DependencyProperty.UnsetValue if it is null. It passes it through unchanged if it is not null.
Declaration
public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
object[] | values | The input values to be converted. |
Type | targetType | The parameter is not used. |
object | parameter | The parameter is not used. |
CultureInfo | culture | The parameter is not used. |
Returns
Type | Description |
---|---|
object | DependencyProperty.UnsetValue if the input value is null. Otherwise it returns the input value unchanged. |
ConvertBack(object, Type[], object, CultureInfo)
The method is not used.
Declaration
public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
object | value | The parameter is not used. |
Type[] | targetTypes | The parameter is not used. |
object | parameter | The parameter is not used. |
CultureInfo | culture | The parameter is not used. |
Returns
Type | Description |
---|---|
object[] | The return value is not used. |