Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2017 Live Visual Tree doesn't work

I can't enable Live Visual Tree in Visual Studio 2017 for UWP app (C#). This tool was working on VS2015, but never worked for me in VS2017. It works with no problems for my WPF projects.

I'm getting the following error message in Live Visual Tree:

UI debugging requires the latest version of the SDK and the Universal Windows App Development Tools. Ensure that these tools are installed to enable UI Debugging.

What I tried:

  1. Make sure that Enable UI Debugging Tools for XAML is Checked in Options/Debugging.
  2. Reinstalled Windows 10 SDK (10.0.15063.0) for UWP: C#, VB, JS

I can't find any information about the issue (relevant to VS 2017, although found some info about VS2015) in web or in Stack Overflow. Please help.

like image 842
Mike Keskinov Avatar asked Apr 12 '18 17:04

Mike Keskinov


People also ask

How to enable Live Visual Tree in Visual Studio 2017?

In Visual Studio go to Tools --> Options --> Debugging --> General and uncheck "Use Managed Compatibility Mode" and the Live Visual Tree should show up.

How do I enable live visual tree?

You can enable this mode when you select the leftmost button on the Live Visual Tree toolbar. With this mode on, you can select a UI element in the application, and the Live Visual Tree automatically updates to show the node in the tree corresponding to that element, and its properties.

How to see Visual Tree in WPF?

In the Value column, hover over the magnifying glass and notice that it's labeled WPF Tree Visualizer. Click on the magnifying glass to open the WPF Tree Visualizer. The WPF Tree Visualizer will open in a new window. You can view the Visual Tree in the upper left corner of the window.


1 Answers

After contacting Microsoft, they told me check if I have the following file:

C:\Program Files (x86)\Windows Kits\10\bin\x86\XamlDiagnostics\XamlDiagnostics.dll

I didn't even have a folder XamlDiagnostics.

Then I was asked to (re)install Windows 10 SDK. I downloaded the latest SDK from here and after I installed it, the problem gone.

Great thanks to Evgeny Tvorun [MSFT] who helped me with the issue.

The Visual Tree tool is really great and I feel lost all that time I was without it.

like image 53
Mike Keskinov Avatar answered Sep 25 '22 20:09

Mike Keskinov