Is there a way to get the element at the mouse position?
I am using Mouse.DirectlyOver.
It works fine only if the mouse is not captured. If the mouse is captured, it gets the element with mouse capture which is not necessarily the element at mouse position. In fact, the MSDN documentation says :
If an element has mouse capture, the mouse pointer is considered directly over the element regardless of the where the mouse pointer is.
Is there a workaround?