UIElement.PointerCanceled event

Expand
This topic has not yet been rated - Rate this topic

UIElement.PointerCanceled event

[This documentation is preliminary and is subject to change.]

Occurs when a pointer that made contact abnormally loses contact.

Syntax


public event PointerEventHandler PointerCanceled


<uiElement PointerCanceled="eventhandler"/>

Event information

Delegate PointerEventHandler

Remarks

Note  PointerCanceled might fire instead of PointerReleased. Don't rely on PointerPressed and PointerReleased events always occurring in pairs. To function properly, your app must listen for and handle all events that represent likely conclusions to the Press action, and that includes PointerCanceled. Some of the reasons why you might get a PointerCanceled occurrence are:
  • User actions that change the relationship of the display area, such as changing resolution or monitor settings
  • Input interactions such as a stylus touching the same surface as a previous touch action

This event is a routed event. For more info on the routed event concept, see Events and routed events overview.

This event also supports the ability to attach event handlers to the route that will be invoked even if the event data for the event is marked Handled. See AddHandler.

Requirements

Minimum supported client

Windows 8 Release Preview

Minimum supported server

Windows Server 2012

Namespace

Windows.UI.Xaml
Windows::UI::Xaml [C++]

Metadata

Windows.winmd

See also

UIElement
Quickstart: Touch input
XAML user input events sample

 

 

Build date: 5/22/2012

Did you find this helpful?
(1500 characters remaining)
Community Additions ADD