Open jsuarezruiz opened 5 years ago
I'm still kind of working out what the best idea would be to implement this. Adding TapGestureRecognizer
to every single element seems like a terrible idea. However, adding one TapGestureRecognizer
and getting its coordinates isn't possible out of the box. It would allow us to traverse the visual tree to find the element based on coordinates though.
Another, completely different option, would be to e.g. shake the device and then make a crosshair appear that you can drag and drop around the screen. This also has some buttons floating along with it that let you do different things like e.g. highlight the item underneath the crosshair, show its properties and other stuff we could think of. Sort of like an in-app inspect element in XamForms.
The idea is similar to the actual now, draw the border (or background) of a control with a color to see exactly its position and size. The difference is that, instead of drawing all, we are only going to draw that control over a special tap is made (Example: triple tap).