InvokeCommand Element
TOC
Collapse the table of content
Expand the table of content

InvokeCommand Element

Invokes an arbitrary method and can be used wherever commands are accepted.

Syntax

<InvokeCommand
    ResultTarget="ObjectPath element"
    Target="ObjectPath element"
    Transformer="object"
 >
    <HandleExceptions />
    <Transformer />
</InvokeCommand>

Attributes

HandleExceptions

Indicates the HandleException exception handler defined for this object.

ResultTarget

An object path in the form [ObjectName.Member] that specifies the location to store the result.

Target

An object path in the form [ObjectName.Member] that specifies the method to invoke.

Transformer

Indicates a data converter for the result value before it is set on the result target. 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

Show:
© 2016 Microsoft