Microsoft Silverlight will reach end of support after October 2021. Learn more.
Provides data for mouse-related events.
In addition to properties, MouseEventArgs also has several specialized methods, including GetPosition. You can obtain the coordinates where a mouse event occurred by calling the GetPosition method on the MouseEventArgs object, rather than by getting a value for "X" or "Y" properties of MouseEventArgs. This is because GetPosition provides the ability to get a coordinate offset from a specified object, which can be useful for clarifying the coordinate reference frame for a particular sender of the event.