Click or drag to resize

LogicalMultiValueConverter Class

A IMultiValueConverter that performs a logical operation on all items.
Inheritance Hierarchy
SystemObject
  TomsToolbox.Wpf.ConvertersMultiValueConverter
    TomsToolbox.Wpf.ConvertersLogicalMultiValueConverter

Namespace:  TomsToolbox.Wpf.Converters
Assembly:  TomsToolbox.Wpf (in TomsToolbox.Wpf.dll) Version: 1.0.75.0
Syntax
[ValueConversionAttribute(typeof(Object[]), typeof(bool))]
public class LogicalMultiValueConverter : MultiValueConverter

The LogicalMultiValueConverter type exposes the following members.

Constructors
  NameDescription
Public methodLogicalMultiValueConverter
Initializes a new instance of the LogicalMultiValueConverter class
Top
Properties
  NameDescription
Public propertyOperation
Gets or sets the operation to be performed on all items.
Top
Methods
  NameDescription
Protected methodConvert
Converts source values to a value for the binding target. The data binding engine calls this method when it propagates the values from source bindings to the binding target. An input value of null will return null, whereas if the input array contains UnSet then UnSet will be returned.

[NotNull]

(Overrides MultiValueConverterConvert(Object, Type, Object, CultureInfo).)
Protected methodConvertBack
Converts a value.

[CanBeNull, ItemCanBeNull]

(Inherited from MultiValueConverter.)
Top
Fields
  NameDescription
Public fieldStatic memberAnd
The default logical AND converter.

[NotNull]

Public fieldStatic memberOr
The default logical OR converter.

[NotNull]

Top
Extension Methods
  NameDescription
Public Extension MethodSafeCastT
Performs a cast from object to T, avoiding possible null violations if T is a value type.

[CanBeNull]

(Defined by ObjectExtensions.)
Top
Remarks
All items must be convertible to boolean.
See Also