C# Windows Phone 8设备在不同分辨率(WVGA、WXGA和720P)下的奇怪显示行为
这是我的XAML设计C# Windows Phone 8设备在不同分辨率(WVGA、WXGA和720P)下的奇怪显示行为,c#,windows-phone-8,C#,Windows Phone 8,这是我的XAML设计 <Grid x:Name="ContentPanel2" Grid.Row="1" Background="Black" Height="440" Width="440"> <Grid.RowDefinitions> <RowDefinition Height="*" /> <RowDefinition Height="*" />
<Grid x:Name="ContentPanel2" Grid.Row="1" Background="Black" Height="440" Width="440">
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="*" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Border BorderThickness="0" Grid.Row="0" Grid.Column="0" Background="White" />
<Border BorderThickness="0" Grid.Row="0" Grid.Column="1" Background="White" />
<Border BorderThickness="0" Grid.Row="0" Grid.Column="2" Background="White" />
<Border BorderThickness="0" Grid.Row="1" Grid.Column="0" Background="White" />
<Border BorderThickness="0" Grid.Row="1" Grid.Column="1" Background="White" />
<Border BorderThickness="0" Grid.Row="1" Grid.Column="2" Background="White" />
<Border BorderThickness="0" Grid.Row="2" Grid.Column="0" Background="White" />
<Border BorderThickness="0" Grid.Row="2" Grid.Column="1" Background="White" />
<Border BorderThickness="0" Grid.Row="2" Grid.Column="2" Background="White" />
</Grid>
以下是图片wvga图像
wxga图像
这在每种分辨率(wvga、wxga和720p)中显示不同。 有人知道为什么会发生这种行为吗? 如何解决这个问题?这是一个已知的问题(虽然它有另一个StackOverflow问题,但我找不到),分数像素是如何工作的-您可以通过项目之间的“间隙”看到网格背景 您可以通过将网格背景设置为白色来修复它