.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

silverlight - Applying a style to ItemContainerStyle in C# -

c# - NullReferenceException in MySqlClient.NativeDriver -

php - How can I merge Nodes & Webform Submissions into instances of one general Content Type in Drupal 6? -