I have a page whose root element is a Grid named Root
.
I have many controls like TextBlock
, TextBox
, Grid
, Rectangle
, Border
etc... who are children of Root
.
Now, I want to have a MouseDown
or PreviewMouseDown
or Click
on Root
to find the name of the element on which I clicked.
So, how can I get the name of the element on which I clicked
/ mousedown
?
If I can get a solution that uses Tunneling, It will be much easier.