.net - Want to find the control over which mouse is placed in wpf -


i have main control in wpf. , many controls placed in main control. when mouse moves on main control want find on control in main control mouse placed.

sounds want uielement.inputhittest. takes in 2d point (relative uielement's location) , returns iinputelement uielement implements. example...

button button = mywindow.inputhittest(mouseposition) button; if (button != null)     // blahblahblah 

Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -