Binding Element

Defines a rule that binds a source to a target. The target is updated whenever the source changes.

Syntax

<Binding
    ConditionLogicalOp="{And | Or}"
    Source="ObjectPath element"
    Target="ObjectPath element"
    Transformer="object"
>
    <Actions />
    <Conditions />
    <Transformer />
</Binding>

Attributes

Actions

Specifies actions for this rule. Possible actions include:

DebugTrace

Invoke

Navigate

PlayAnimation

PlaySound

Set

ConditionLogicalOp

Specifies a ConditionLogicalOp logical operator for rule-matching behavior.

Conditions

Lists the conditions for a rule. Possible conditions include:

Equality

IsType

IsNotType

IsValid

Modified

Source

An object path in the form [ObjectName.Member] that indicates the source of the binding.

Target

An object path in the form [ObjectName.Member] that indicates the target of the binding.

Transformer

Optional. Indicates a data converter. You can use inline or expanded construction. Possible transformer elements include:

BooleanTransformer

DateTimeTransformer

FormatTransformer

MathTransformer

TimeSpanTransformer

Requirements

Platform: Windows Vista Ultimate, Windows Vista Home Premium, and later

See Also