如何消除流氓“计数器"在我的Windows Store主页上?
我有一个简约的主页-4个按钮和一个必应地图.
I have a minimalistic main page - 4 buttons and a Bing Map.
但是,当我运行该应用程序时,我在左上角和右上角看到两个流氓计数器"(不知道如何描述它们).这是左上角的那个:
When I run the app, though, I see two rogue "counters" (don't know how else to describe them) in the upper left and upper right. Here's the one on the upper left:
是什么原因造成的,我该如何摆脱它们?
What's causing them, and how can I get rid of them?
顺便说一句,左边的黑色竖条是按设计的"(没有双关语)-在计数器"下面是我的四个按钮,它们是垂直堆叠的(我故意给Bing地图只提供了页面的80%,而不是贪婪地从git-go抓取的100%).
BTW, the black vertical strip on the left is "as designed" (no pun intended) - below the "counter" are my four buttons, stacked vertically (I deliberately gave the Bing Map only 80% of the page, not the 100% it greedily grabbed from the git-go).
对于Ashok:XAML就是这样:
For Ashok: Here's all there is to the XAML:
<Page
x:Class="Platypus.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:Platypus"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:bm="using:Bing.Maps"
mc:Ignorable="d">
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" Margin="0,0,0,0">
<bm:Map Credentials="42314" x:Name="platypusMap" Margin="197,0,0,0" ></bm:Map>
<Button x:Name="btnOpenImgFiles" Content="Open Images" HorizontalAlignment="Left" Margin="2,48,0,0" VerticalAlignment="Top" Click="btnOpenImgFiles_Click"/>
<Button x:Name="btnOpenMap" Content="Open Saved Map" HorizontalAlignment="Left" Margin="2,128,0,0" VerticalAlignment="Top" Click="btnOpenMap_Click" />
<Button x:Name="btnSaveMap" Content="Save Map" HorizontalAlignment="Left" Margin="2,208,0,0" VerticalAlignment="Top" Click="btnSaveMap_Click" />
<Button x:Name="btnEmailMap" Content="Email Map" HorizontalAlignment="Left" Margin="2,288,0,0" VerticalAlignment="Top" Click="btnEmailMap_Click" />
</Grid>
</Page>
在构建调试文件时,默认情况下在app.xaml.cs中打开了那些帧速率计数器:
Those are frame rate counters turned on by default in your app.xaml.cs when building for debug:
protected override void OnLaunched(LaunchActivatedEventArgs e)
{
#if DEBUG
if (System.Diagnostics.Debugger.IsAttached)
{
this.DebugSettings.EnableFrameRateCounter = true;
}
#endif
如果在调试时不希望使用它们,则可以将其删除.默认情况下,它们不会显示在发行版中.
You can remove these if you don't want them while debugging. They won't show up by default in release.
-Rob