'Declaration
Public Event Holding As EventHandler(Of HoldingEventArgs)
public event EventHandler<HoldingEventArgs> Holding
The event handler receives an argument of type HoldingEventArgs containing data related to this event. The following HoldingEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Handled | Gets or sets a value that marks the routed event as handled. Setting to true prevents most handlers along the event route from handling the same event again. (Inherited from C1.Win.TouchToolKit.TouchRoutedEventArgs) |
HoldingState | Gets the underlying HoldingState for the interaction |
OriginalSource | Gets a reference to the object that raised the event. (Inherited from C1.Win.TouchToolKit.TouchRoutedEventArgs) |
PointerDeviceType | Gets the PointerDeviceType for the pointer device that initiated the associated input event. |
Position | Returns the x- and y- control coordinates of the pointer position. |
TargetControl | Gets the target control which attached to the C1TouchEventProvider. (Inherited from C1.Win.TouchToolKit.TouchRoutedEventArgs) |
The Tapped, DoubleTapped, and RightTapped events occur only after the touch point is removed. But the Holding event occurs while the touch point is still in contact. The event occurs if the touch point remains in approximately the same position for a period of time.
This event is a routed event. If you do not want parent control receive this event, set HoldingEventArgs.Handled
The following code example shows how to use this event.
This code example is part of a larger example provided for the C1TouchEventProvider class.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2