Class EqualsConverter
Converts an array of objects to a boolean specifying whether all objects are equal.
Implements
Inherited Members
Namespace: PresentationTheme.AeroLite.Win10
Assembly: PresentationTheme.AeroLite.Win10.dll
Syntax
public class EqualsConverter : IMultiValueConverter
Examples
The following DataTrigger checks whether the Value property is equal to the Maximum property.
<theme:EqualsConverter x:Key="EqualsConverter"/>
<DataTrigger Value="True">
<DataTrigger.Binding>
<MultiBinding Converter="{StaticResource EqualsConverter}">
<Binding Path="Value" RelativeSource="{RelativeSource Self}"/>
<Binding Path="Maximum" RelativeSource="{RelativeSource Self}"/>
</MultiBinding>
</DataTrigger.Binding>
</DataTrigger>
Methods
| Improve this Doc View SourceConvert(Object[], Type, Object, CultureInfo)
Converts an array of objects to a boolean specifying whether all objects are equal.
Declaration
public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
Object[] | values | The array of values. |
Type | targetType | The type of the binding target property. |
Object | parameter | The converter parameter to use. Not used. |
CultureInfo | culture | The culture to use in the converter. Not used. |
Returns
Type | Description |
---|---|
Object | true if all objects in |
Explicit Interface Implementations
| Improve this Doc View SourceIMultiValueConverter.ConvertBack(Object, Type[], Object, CultureInfo)
Declaration
object[] IMultiValueConverter.ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
Object | value | |
Type[] | targetTypes | |
Object | parameter | |
CultureInfo | culture |
Returns
Type | Description |
---|---|
Object[] |