c# - 调试时 "Form"上的这些黑底数字是什么?

标签 c# visual-studio visual-studio-2015 windows-10 win-universal-app

在 Windows 10 上的 Visual Studio 2015 中调试 C# Windows 应用商店应用程序时,我得到以下信息:

enter image description here

这些数字是多少?代码中根本没有数字。它应该只是它背后的图像。

最佳答案

这些数字是与 EnableFrameRateCounter 相关的额外调试信息.

如果查看 App.xaml.cs 代码,您会发现 FrameRateCounter 已针对 Debug模式以编程方式初始化:

#if DEBUG
if (System.Diagnostics.Debugger.IsAttached)
{
   this.DebugSettings.EnableFrameRateCounter = true;
}
#endif

关于c# - 调试时 "Form"上的这些黑底数字是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31904851/

相关文章:

ios - 什么是 IOS 中多行文本的最佳文本容器

arrays - VB.NET需要使用MessageBox进行错误检查的指南

c++ - 托管测试项目和 native 单元测试项目之间的 Visual Studio C++ 区别

c# - 如何使用 GraphicsPath 绘制形状来创建自定义控件的区域?

c# - 如何在没有物理硬件的情况下利用多显示器设置的功能?

c# - Linux 上的 .net 核心日期格式

visual-studio-2015 - 在 Visual Studio Cordova 中调试时如何查看网络流量

c# - 运行时可浏览(假)?

c# - System.ObjectDisposedException : 'Cannot access a disposed object.'

visual-studio - 如何手动卸载 Visual Studio 2013 扩展?