Xamarin.Forms.DebugRainbows icon indicating copy to clipboard operation
Xamarin.Forms.DebugRainbows copied to clipboard

Tap Border Helper

Open jsuarezruiz opened this issue 5 years ago • 1 comments

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).

jsuarezruiz avatar May 11 '19 10:05 jsuarezruiz

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.

sthewissen avatar May 12 '19 20:05 sthewissen