How to enable Live Visual Tree and Live Property Explorer in Visual Studio

前端 未结 6 1469
南旧
南旧 2021-02-02 11:12

I\'m running a .Net 4.5 WPF application in Visual Studio 2015 Update 1 in a Debug build configuration.

In Tools > Options > Debugging > General I have checked Enable UI

相关标签:
6条回答
  • 2021-02-02 11:47

    I had the same issue and resolved it by also selecting the "Preview selected elements in Live Visual Tree" sub-option (i.e. under Tools > Options > Debugging > General > Enable UI Debugging Toos for XAML). Whenever I unchecked that option, the Live Property Explorer and Live Visual Tree windows would go back to showing the "UI Debugging is either disabled..." message again.

    0 讨论(0)
  • 2021-02-02 11:48

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

    0 讨论(0)
  • 2021-02-02 11:55

    On my end, the issue was that the Target device under the project Properties\Debug\Start Options had somehow changed from "Local Machine" to "Simulator". Going back to "Local Machine" (without changing any of the other debug options mentioned in the other answers) brought back the live visual tree and the live property explorer.

    0 讨论(0)
  • 2021-02-02 12:02

    Nothing worked for me except for a reboot (log out/in probably would have sufficed). I'm guessing a supporting process got into a bad state and wasn't closing when Visual Studio did.

    0 讨论(0)
  • 2021-02-02 12:04

    Steps can be seen below, it works well for me.

    Open VS, then type "Enable UI Debugging Tools for XAML" in the Quick Lanch box, enter to go to setting detail page (see screenshot below).

    • Uncheck "Use Managed Compatibility Mode"
    • Check "Enable UI Debugging Tools for XAML" and its sub options

    You can refer from Microsoft:

    How to: Display WPF Trace Information - Visual Studio | Microsoft Docs

    0 讨论(0)
  • 2021-02-02 12:14

    Another thing that can cause this to fail is security common in a corporate environment. If the other solutions do not work for you (and your code is not already there), try moving your code to a location under your Documents folder. There are sometimes exceptions to security constraints on your Documents folder, and those security constraints can keep this feature from working.

    0 讨论(0)
提交回复
热议问题