ClickHandler Element
An event handler that provides button-like input behavior to a UI object.
Syntax
<ClickHandler
Clicking="{true | false}"
Command="ICommand object"
HandleEnterSpaceKeys="{true | false}"
HandlePrimaryMouseButton="{true | false}"
HandlerStage="{Bubbled | Direct | Routed}"
/>
Attributes
Clicking
Indicates whether the UI is currently experiencing a click action. This value is read-only.
Command
Specifies an ICommand object associated with the click handler. The Invoke method for the command will be called when a click event occurs.
HandleEnterSpaceKeys
Indicates whether to handle the SPACEBAR and ENTER keys.
HandlePrimaryMouseButton
Indicates whether to handle the primary mouse button.
HandlerStage
A member of the InputHandlerStage enumeration indicating the stage in the event handling process at which the event will be handled.
Public Instance Events
Event | Description |
Invoked | Notification that is sent when the UI is clicked. |
Requirements
Platform: Windows Vista Ultimate, Windows Vista Home Premium, and later
See Also