-api-id | -api-type |
---|---|
T:Windows.UI.Xaml.Controls.ClickMode |
winrt enum |
Specifies when the Click event should be raised for a control.
<object property="enumMemberName"/>
Specifies that the Click event should be raised when the left mouse button is pressed and released, and the mouse pointer is over the control. If you are using the keyboard, specifies that the Click event should be raised when the SPACEBAR or ENTER key is pressed and released, and the control has keyboard focus.
Specifies that the Click event should be raised when the mouse button is pressed and the mouse pointer is over the control. If you are using the keyboard, specifies that the Click event should be raised when the SPACEBAR or ENTER key is pressed and the control has keyboard focus.
Specifies that the Click event should be raised when the mouse pointer moves over the control.
The following example demonstrates the ClickMode enumeration.
- Hover - When the mouse pointer hovers over the first button, the foreground color of the button changes.
- Press - When the left mouse button is pressed while over the second button, the foreground color of the button changes.
- Release - When the mouse button is pressed and released while over the third button, the button resets the foreground color of the other two buttons to their original color.
[!code-xaml1]
[!code-csharp11]
[!code-vb11]