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:
Enable UI Debugging Tools for XAML
is Checked in Options/Debugging
.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.
In Visual Studio go to Tools --> Options --> Debugging --> General and uncheck "Use Managed Compatibility Mode" and the Live Visual Tree should show up.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With