Condition Element

Defines a rule that invokes actions based on a logical condition.

Syntax

<Condition
    ConditionLogicalOp="{And | Or}"
    ConditionOp="{ChangedTo | Equals | GreaterThan | GreaterThanOrEquals | LessThan | LessThanOrEquals | NotEquals}"
    Source="ObjectPath element"
    SourceValue="object"
    Target="ObjectPath element"
    Value="object"
>
    <Actions />
    <Conditions />
</Condition>

Attributes

Actions

Specifies actions for this rule. Possible actions include:

DebugTrace

Invoke

Navigate

PlayAnimation

PlaySound

Set

You can use the ArrayListDataSet class to populate a list from markup. This method works well with repeaters because changes to the list are automatically directed to the repeater.

ConditionLogicalOp

Specifies a ConditionLogicalOp logical operator for rule-matching behavior.

ConditionOp

Specifies the type of condition operation, which must be a member of the ConditionOp enumeration.

Conditions

Lists the conditions for a rule. Possible conditions include:

Equality

IsNotType

IsType

IsValid

Modified

Source

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

ConditionValue

Specifies the value to check against the source.

Target

Optional. An object path in the form [ObjectName.Member] that indicates the target to set if the condition is true.

Value

Optional. The value of the target to set if the condition is true.

Requirements

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

See Also