Class VirtualTouchDevice
- Namespace
- HelixToolkit.Wpf.SharpDX
- Assembly
- HelixToolkit.Wpf.SharpDX.dll
A virtual TouchDevice enabling Windows.Forms controls to generate Touch/Manipulation-Events.
public class VirtualTouchDevice : TouchDevice, IManipulator
- Inheritance
-
VirtualTouchDevice
- Implements
- Inherited Members
Methods
GetIntermediateTouchPoints(IInputElement)
When overridden in a derived class, returns all touch points that are collected between the most recent and previous touch events.
public override TouchPointCollection GetIntermediateTouchPoints(IInputElement relativeTo)
Parameters
relativeToIInputElementThe element that defines the coordinate space.
Returns
- TouchPointCollection
All touch points that were collected between the most recent and previous touch events.
GetTouchPoint(IInputElement)
Returns the current position of the touch device relative to the specified element.
public override TouchPoint GetTouchPoint(IInputElement relativeTo)
Parameters
relativeToIInputElementThe element that defines the coordinate space.
Returns
- TouchPoint
The current position of the touch device relative to the specified element.
OnCapture(IInputElement, CaptureMode)
Called when a touch is captured to an element.
protected override void OnCapture(IInputElement element, CaptureMode captureMode)
Parameters
elementIInputElementThe element that captures the touch input.
captureModeCaptureModeThe capture policy.
RegisterTouchWindow(nint, uint)
public static extern bool RegisterTouchWindow(nint hWnd, uint ulFlags)
Parameters
Returns
WndProc(Visual, ref Message)
public static bool WndProc(Visual visual, ref Message m)