MultiBinding Class
namespace Noesis | MSDN
Describes a collection of Binding objects attached to a single binding target property.
Example:
<Border>
<Border.Width>
<MultiBinding Converter="{StaticResource AddConverter}">
<Binding ElementName="source1" Path="Width"/>
<Binding ElementName="source2" Path="Width"/>
</MultiBinding>
</Border.Width>
</Border>
<TextBlock>
<TextBlock.Text>
<MultiBinding StringFormat="{}{0} x {1}">
<Binding Path="Width" />
<Binding Path="Height" />
</MultiBinding>
</TextBlock.Text>
</TextBlock>
Properties
Name | Description |
---|---|
Bindings | Gets the collection of Binding objects within this MultiBinding instance |
Converter | Gets or sets the converter to use to convert the source values to or from the target value |
ConverterParameter | Gets or sets the parameter to pass to the Converter |
Mode | Gets or sets the binding mode. It can be set to one of the following values of the BindingMode enumeration:
|
UpdateSourceTrigger | Gets or sets a value that determines the timing of binding source updates:
|
Dependency Property Reflection Property
From BaseBinding
Name | Description |
---|---|
Delay | Gets or sets the amount of time, in milliseconds, to wait before updating the binding source after the value on the target changes |
FallbackValue | Gets or sets the value to use when the binding is unable to return a value |
StringFormat | Gets or sets a string that specifies how to format the binding if it displays the bound value as a string. Examples: <TextBlock Text="{Binding Amount, StringFormat=F2}" />
<TextBlock Text="{Binding Amount, StringFormat={}{0:F2}}" />
<TextBlock Text="{Binding Amount, StringFormat=Value is {0:F2} units}" />
|
TargetNullValue | Gets or sets the value to use when final target value is null |
Dependency Property Reflection Property
Attached Properties
MultiBinding has no attached properties
Methods
Name | Description |
---|---|
ProvideValue(provider) | Can return 0 when the source object is not resolvable (doesn't throw exception) |
From MarkupExtension
Name | Description |
---|---|
ProvideValue(provider) | Returns an object that is provided as the value of the target property for this extension |
Events
MultiBinding has no events