wpf 禁用 Visual Studio 2015 额外调试选项

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/36618494/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-08 11:23:54  来源:igfitidea点击:

Disable Visual Studio 2015 extra debug option

wpfvisual-studio-2015

提问by Daltons

When I debug my application in Microsoft Visual Studio 2015 Update 2, and I open a custom wpf dialog I get some extra debugging options in a black square. See image blow.

当我在 Microsoft Visual Studio 2015 Update 2 中调试我的应用程序并打开自定义 wpf 对话框时,我会在黑色方块中看到一些额外的调试选项。见图像吹。

enter image description here

在此处输入图片说明

How do I disable that?

我如何禁用它?

This first icon says "Go To Live Visual Tree". The second icon says "Enable Selection". The third icon says "Display Layout Adorners".

第一个图标显示“Go To Live Visual Tree”。第二个图标显示“启用选择”。第三个图标表示“显示布局装饰器”。

回答by Dmitry Rotay

Try unchecking this option: Tools –> Options –> Debugging –> General –> Enable UI Debugging Tools for XAML.

尝试取消选中此选项:Tools –> Options –> Debugging –> General –> Enable UI Debugging Tools for XAML

Though you still might consider leaving it on and using it to your advantage.

尽管您仍然可能会考虑保留它并利用它为您带来好处。

回答by Greg Mulvihill

After having the same question and finding the answer here, I also discovered that it can be toggled from the Live Visual Tree window.

在遇到同样的问题并在这里找到答案后,我还发现它可以从 Live Visual Tree 窗口中切换。

While debugging, Debug (menu) -> Windows -> Live Visual Tree

调试时,调试(菜单)-> Windows -> Live Visual Tree

The first icon (Show runtime tools in application) will toggle it.

第一个图标(在应用程序中显示运行时工具)将切换它。

Show runtime tools in application

在应用程序中显示运行时工具

回答by Lynn Crumbling

Instead of turning mine off entirely, I've taken to collapsing it most of the time. There are still times when it's entirely useful, and the collapsed version does a nice job of providing only minimal UI usage. To collapse it, click on the horizontal bar:

大多数时候,我并没有完全关闭我的电源,而是将其折叠起来。有时它仍然非常有用,并且折叠版本在仅提供最少的 UI 使用方面做得很好。要折叠它,请单击水平栏:

enter image description here

在此处输入图片说明

To restore it, simply click the bar again.

要恢复它,只需再次单击该栏。

回答by Sheridan

I realise that this is an old question, but there is an additional option that no one has mentioned. Rather than turning this useful functionality off completely, we can enable the functionality, but just remove the annoying runtime tools from appearing at the top of our applications:

我意识到这是一个老问题,但还有一个没有人提到的附加选项。我们可以启用该功能,而不是完全关闭这个有用的功能,但只需删除出现在我们应用程序顶部的烦人的运行时工具:

enter image description here

在此处输入图片说明

This option can be unchecked at the following location:

可以在以下位置取消选中此选项:

Tools > Options > Debugging > General > Enable UI Debugging Tools for XAML > Show runtime tools in the application

工具 > 选项 > 调试 > 常规 > 为 XAML 启用 UI 调试工具 > 在应用程序中显示运行时工具