C# Class Windows7.Multitouch.WPF.Factory

Helper class for creating Gesture handler and Enabling touch for WPF application
Mostra file Open project: RIT-Tool-Time/Cascade

Public Methods

Method Description
CreateGestureHandler ( System window ) : GestureHandler

A factory that creates gesture handler for a WPF Window

since WPF does not support Touch events, only Gesture handler can be created

CreateTimer ( ) : IGUITimer

Create a wrapper for a UI based timer

This timer is called in the context of the UI thread

EnableStylusEvents ( System window ) : void

Enable Stylus events, that represent touch events.

Each stylus device has an Id that is corelate to the touch Id

Method Details

CreateGestureHandler() public static method

A factory that creates gesture handler for a WPF Window
since WPF does not support Touch events, only Gesture handler can be created
public static CreateGestureHandler ( System window ) : GestureHandler
window System The window that need touch or gesture events
return GestureHandler

CreateTimer() public static method

Create a wrapper for a UI based timer
This timer is called in the context of the UI thread
public static CreateTimer ( ) : IGUITimer
return IGUITimer

EnableStylusEvents() public static method

Enable Stylus events, that represent touch events.
Each stylus device has an Id that is corelate to the touch Id
public static EnableStylusEvents ( System window ) : void
window System The WPF window that needs stylus events
return void