问题
I have installed Win 10 Preview and VS 2015. I created a new uap blank app and ran it and I get a Window with two numbers on the top left, eg 000 000 If I add a button to the app (and move it away from the obscuring numbers) and then click the button, the numbers change in what seems to me a random way, eg 020 001.
What is going on?
回答1:
I have now found that these numbers disappear if you set
this.DebugSettings.EnableFrameRateCounter = false
in OnLaunched. This is explained here
Not that this means anything to me.
回答2:
It's the frame counter turned on by the following code snippet in your App.xaml.cs:
#if DEBUG
if (System.Diagnostics.Debugger.IsAttached)
{
this.DebugSettings.EnableFrameRateCounter = true;
}
#endif
source: https://social.msdn.microsoft.com/Forums/en-US/a33a634c-5c68-44b4-8fca-8eb5a263d145/misterious-numbers-being-displayed-in-upper-left-and-right-corners-of-the-screen?forum=winappswithcsharp
回答3:
These are debug informations, they will not show up if you build in release mode.
Left number is the FPS counter for your app, right number is the CPU usage for each frame in % (only for computations in the UI thread).
But the MSDN page you linked provided a full explanation.
来源:https://stackoverflow.com/questions/29364607/what-are-the-two-numbers-in-top-left-of-uap-app-using-vs2015-and-windows-10