如何检查任何 UWP 应用的可视化树 [英] How to inspect the Visual Tree of any UWP app

查看:24
本文介绍了如何检查任何 UWP 应用的可视化树的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以检查任何 UWP 应用程序的可视化树以查看其呈现方式,就像检查正在 Visual Studio 中调试的应用程序的可视化树一样?

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.

推荐答案

是.

  • 在没有打开项目的情况下打开 Visual Studio.
  • 从顶部选择调试"菜单和附加到进程".
  • 按旁边的选择"按钮附加到"输入字段,并仅选择本机代码".
  • 选择您的目标 UWP 应用并按确定.

此时您应该有一个可检查的实时可视化树.

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

如果无法看到帮助构建 XAML 的代码,它可能没有您希望的那么有用,但偶尔激发一些想法仍然很有趣.

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.

这篇关于如何检查任何 UWP 应用的可视化树的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆