Table of Contents

Class ValueConverterGroupParameters

Namespace
WindowSill.API
Assembly
WindowSill.API.dll

A collection of parameters that can be passed to a ValueConverterGroup, where each element corresponds to the parameter for the converter at the same index in the converter group.

public class ValueConverterGroupParameters : List<object>, IList<object>, ICollection<object>, IReadOnlyList<object>, IReadOnlyCollection<object>, IEnumerable<object>, IList, ICollection, IEnumerable
Inheritance
ValueConverterGroupParameters
Implements
Inherited Members
Extension Methods

Remarks

This class extends List<T> of object to provide a strongly-typed container for converter parameters. Each element in this list will be passed as the parameter to the corresponding converter in a ValueConverterGroup at the same index position.

Usage example:

<Binding Path="Value" Source="{x:Static local:DataContext.Instance}">
    <Binding.Converter>
        <local:ValueConverterGroup>
            <local:StringToNumberConverter/>
            <local:NumberToStringConverter/>
        </local:ValueConverterGroup>
    </Binding.Converter>
    <Binding.ConverterParameter>
        <local:ValueConverterGroupParameters>
            <sys:String>Parameter for first converter</sys:String>
            <sys:String>Parameter for second converter</sys:String>
        </local:ValueConverterGroupParameters>
    </Binding.ConverterParameter>
</Binding>

See Also