WPF Get Element(s) under mouse

NotDan picture NotDan · Sep 5, 2008 · Viewed 41.4k times · Source

Is there a way with WPF to get an array of elements under the mouse on a MouseMove event?

Answer

Andy picture Andy · Sep 5, 2008

You can also try using the Mouse.DirectlyOver property to get the top-most element that is under the mouse.