UIElement.IsDoubleTapEnabled Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a value that determines whether the DoubleTapped event can originate from that element.
public:
property bool IsDoubleTapEnabled { bool get(); void set(bool value); };
bool IsDoubleTapEnabled();
void IsDoubleTapEnabled(bool value);
public bool IsDoubleTapEnabled { get; set; }
var boolean = uIElement.isDoubleTapEnabled;
uIElement.isDoubleTapEnabled = boolean;
Public Property IsDoubleTapEnabled As Boolean
<uiElement IsDoubleTapEnabled="bool" />
bool
true if a DoubleTapped event can originate from this element; otherwise, false.
The default is true (event enabled). If you set to false, the UIElement will no longer source the DoubleTapped 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 DoubleTapped 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.
Product | Versions |
---|---|
WinRT | Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100 |