Skip to content

Latest commit

 

History

History
36 lines (22 loc) · 1.85 KB

uielement_isholdingenabled.md

File metadata and controls

36 lines (22 loc) · 1.85 KB
-api-id -api-type
P:Windows.UI.Xaml.UIElement.IsHoldingEnabled
winrt property

Windows.UI.Xaml.UIElement.IsHoldingEnabled

-description

Gets or sets a value that determines whether the Holding event can originate from that element.

-xaml-syntax

<uiElement IsHoldingEnabled="bool" />

-property-value

true if a Holding event can originate from this element; otherwise, false.

-remarks

The default is true (event enabled). If you set to false, the UIElement will no longer source the Holding event. This might be desirable if a parent element such as a list control should instead process the action as a manipulation, or if you want to specify that only some child items emit a Holding event that a parent handles after bubbling.

Another reason to suppress gesture events is if you are handling pointer-level events and don't want gesture recognition logic to impact how the pointer events are fired. For example, if the gesture recognition engine has to test for Tapped, then it must delay firing a PointerMoved event for small movements, because the user might lift the touch point soon and the input event would normally be gesture-recognized as a tap. Also, Holding states might interfere with other pointer events, or generate theme animations, because of the progression through the Holding states that must be reported by gesture recognition.

-examples

-see-also

Holding, OnHolding, Handle pointer input