.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

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

PostgreSQL 9.x - pg_read_binary_file & inserting files into bytea -

asp.net - call stack missing info on mono with apache and mod_mono -