Table of Contents

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

relativeTo IInputElement

The 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

relativeTo IInputElement

The 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

element IInputElement

The element that captures the touch input.

captureMode CaptureMode

The capture policy.

RegisterTouchWindow(nint, uint)

public static extern bool RegisterTouchWindow(nint hWnd, uint ulFlags)

Parameters

hWnd nint
ulFlags uint

Returns

bool

WndProc(Visual, ref Message)

public static bool WndProc(Visual visual, ref Message m)

Parameters

visual Visual
m Message

Returns

bool