How to get current mouse coordination on the screen? I know only Mouse.GetPosition() which get mousePosition of element, but I want to get the coordination without using element.
Mouse.GetPosition()
Or in pure WPF use PointToScreen.
Sample helper method:
// Gets the absolute mouse position, relative to screen Point GetMousePos() => _window.PointToScreen(Mouse.GetPosition(_window));
1.4m articles
1.4m replys
5 comments
57.0k users