.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
Post a Comment