C# Class csShared.Utils.InputDeviceHelper

A helper class that provides extra data for a given input device: - delta between the current position, - an element the intput device was placed at.
Afficher le fichier Open project: TNOCS/csTouch

Méthodes publiques

Méthode Description
ClearDeviceState ( System.Windows.Input.InputDevice device ) : void
DraggedDelta ( System.Windows.Input.InputDevice inputDevice, UIElement relativeTo ) : System.Windows.Vector

Returns delta between current input device position and where the input device was placed relative to the given elementToDrag.

GetDragSource ( System.Windows.Input.InputDevice inputDevice ) : DependencyObject

Returns the Source the input device was placed at.

InitializeDeviceState ( System.Windows.Input.InputDevice device ) : void

Private Methods

Méthode Description
DraggedDelta ( System.Windows.Input.InputDevice inputDevice, Window window, UIElement relativeTo ) : System.Windows.Vector

Method Details

ClearDeviceState() public static méthode

public static ClearDeviceState ( System.Windows.Input.InputDevice device ) : void
device System.Windows.Input.InputDevice
Résultat void

DraggedDelta() public static méthode

Returns delta between current input device position and where the input device was placed relative to the given elementToDrag.
public static DraggedDelta ( System.Windows.Input.InputDevice inputDevice, UIElement relativeTo ) : System.Windows.Vector
inputDevice System.Windows.Input.InputDevice
relativeTo System.Windows.UIElement
Résultat System.Windows.Vector

GetDragSource() public static méthode

Returns the Source the input device was placed at.
public static GetDragSource ( System.Windows.Input.InputDevice inputDevice ) : DependencyObject
inputDevice System.Windows.Input.InputDevice
Résultat System.Windows.DependencyObject

InitializeDeviceState() public static méthode

public static InitializeDeviceState ( System.Windows.Input.InputDevice device ) : void
device System.Windows.Input.InputDevice
Résultat void