Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to inspect the Visual Tree of any UWP app

Tags:

uwp

Is it possible to inspect the Visual Tree of any UWP application to see how it is rendered, in the same way that you can inspect the visual tree of the app that you're debugging in Visual Studio?

It would be very beneficial to be able to see how the user interface of some applications are comprised.

like image 408
Sam Avatar asked Nov 30 '25 02:11

Sam


1 Answers

Yes.

  • Open Visual Studio with no project open.
  • Choose "Debug" from the top menu, and "Attach To Process".
  • Press the "Select" button next to the "Attach To" entry field, and choose "Native Code" only.
  • Choose your target UWP app and press ok.

At this point your should have an inspectable Live Visual Tree.

Without being able to see the code that helped construct that XAML it might not be as useful as you hope, but it's still occasionally interesting to spark some ideas.

like image 164
Johnny Westlake Avatar answered Dec 03 '25 08:12

Johnny Westlake



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!