Mouse Handling in WPF

How to get the Absolute Position of the Mouse on the Screen

You can call Mouse.GetPosition(this) on any WPF element. This function returns the relative offset of the mouse to the upper left corner of your control.
To get the absolute screen cordinates, call the PointToScreen() function.

Comments

Popular posts from this blog

40+ Tools to Advance Your International SEO Process

Asp.net Export WebPage with Images to PDF using iTextSharp in C#, VB.NET