Inspecting XAML in Windows 8 Store Apps / VS2012

前端 未结 4 1533
终归单人心
终归单人心 2021-02-06 06:15

I\'m looking for a way to inspect running XAML in a Windows 8 store app. Essentially, I want firebug / chrome inspector style functionality where I can look at the XAML source g

4条回答
  •  名媛妹妹
    2021-02-06 06:33

    WinRT XAML Toolkit now has an actual visual - visual tree debugger.

    Get it from NuGet: nuget.org/packages/winrtxamltoolkit.Debugging then call WinRTXamlToolkit.Debugging.DC.ShowVisualTree() to display the debugger tool inside of your app. It's the third option so now you can use

    • the WinRTXAMLToolkit.Debugging.VisualTreeDebugger class - that enables you to debug the tree in your Visual Studio
    • XAML Spy - which is a great commercial visual tree debugger that runs in a separate window
    • and now this visual tree debugger in the WinRT XAML Toolkit that works inside of your app.

    enter image description here

提交回复
热议问题