Share via


VariableMultiValueConverter Class

Definition

The VariableMultiValueConverter is a converter that allows users to convert multiple System.Boolean value bindings to a single System.Boolean. It does this by enabling them to specify whether All, Any, None or a specific number of values are true as specified in ConditionType. This is useful when combined with the MultiBinding.

public class VariableMultiValueConverter : Xamarin.CommunityToolkit.Extensions.Internals.MultiValueConverterExtension, Xamarin.Forms.IMultiValueConverter
Inheritance
System.Object
VariableMultiValueConverter
Implements

Constructors

VariableMultiValueConverter()

Properties

ConditionType

Indicates how many values should be true out of the provided boolean values in the MultiBinding. Supports the following values: All, None, Any, GreaterThan, LessThan.

Count

The number of values that should be true when using ConditionType GreaterThan, LessThan or Exact.

Methods

Convert(Object[], Type, Object, CultureInfo)

Converts multiple System.Boolean value bindings to a single System.Boolean. It does this by enabling them to specify whether All, Any, None or a specific number of values are true as specified in ConditionType. This is useful when combined with the MultiBinding.

ConvertBack(Object, Type[], Object, CultureInfo)

Converts one System.Boolean value. Returns null if value is not a System.Boolean value or when not all targetTypes can be assigned from System.Boolean.

ProvideValue(IServiceProvider) (Inherited from MultiValueConverterExtension)

Explicit Interface Implementations

IMarkupExtension.ProvideValue(IServiceProvider) (Inherited from MultiValueConverterExtension)

Applies to