Is there a way with WPF to get an array of elements under the mouse on a MouseMove event?
相关问题
- VNC control for WPF application
- WPF Binding from System.Windows.SystemParameters.P
- XAML: Applying styles to nested controls
- How can I add a horizontal line (“goal line”) for
- How to properly change a resource dictionary
You can also try using the Mouse.DirectlyOver property to get the top-most element that is under the mouse.
Can you use the VisualTreeHelper.HitTest ?
http://lukieb.blogspot.com/2008/07/visualtreehelperhittest.html
From "WPF Unleashed", page 383:
The signature of such a callback is
and it has to return
HitTestResultBehaviour.Continue
to receive further hits, as shown below (from the linked page on MSDN):For further information, please consult the MSDN documentation for
VisualTreeHelper.HitTest
.