Show / Hide Table of Contents

Class EqualsConverter

Converts an array of objects to a boolean specifying whether all objects are equal.

Inheritance
Object
EqualsConverter
Implements
IMultiValueConverter
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
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 Source

Convert(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 values are equal; otherwise false.

Explicit Interface Implementations

| Improve this Doc View Source

IMultiValueConverter.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[]

Implements

System.Windows.Data.IMultiValueConverter
  • Improve this Doc
  • View Source
Back to top Generated by DocFX