C# Класс WPF.JoshSmith.Controls.Utilities.MouseUtilities

Provides access to the mouse location by calling unmanaged code.
This class was written by Dan Crevier (Microsoft). http://blogs.msdn.com/llobo/archive/2006/09/06/Scrolling-Scrollviewer-on-Mouse-Drag-at-the-boundaries.aspx
Показать файл Открыть проект

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

Метод Описание
GetMousePosition ( Visual relativeTo ) : Point

Returns the mouse cursor location. This method is necessary during a drag-drop operation because the WPF mechanisms for retrieving the cursor coordinates are unreliable.

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

Метод Описание
GetCursorPos ( Win32Point &pt ) : bool
ScreenToClient ( IntPtr hwnd, Win32Point &pt ) : bool

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

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

Returns the mouse cursor location. This method is necessary during a drag-drop operation because the WPF mechanisms for retrieving the cursor coordinates are unreliable.
public static GetMousePosition ( Visual relativeTo ) : Point
relativeTo Visual The Visual to which the mouse coordinates will be relative.
Результат Point