C# Класс 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.
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
DraggedDelta ( System.Windows.Input.InputDevice inputDevice, Window window, UIElement relativeTo ) : System.Windows.Vector

Описание методов

ClearDeviceState() публичный статический Метод

public static ClearDeviceState ( System.Windows.Input.InputDevice device ) : void
device System.Windows.Input.InputDevice
Результат void

DraggedDelta() публичный статический Метод

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
Результат System.Windows.Vector

GetDragSource() публичный статический Метод

Returns the Source the input device was placed at.
public static GetDragSource ( System.Windows.Input.InputDevice inputDevice ) : DependencyObject
inputDevice System.Windows.Input.InputDevice
Результат System.Windows.DependencyObject

InitializeDeviceState() публичный статический Метод

public static InitializeDeviceState ( System.Windows.Input.InputDevice device ) : void
device System.Windows.Input.InputDevice
Результат void