在不同分辨率的Windows Phone 8设备的奇怪显示行为(WVGA,WXGA,&安培; 720P)
问题描述:
这是我的 XAML 设计
<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图像
720pimage
这显示各不分辨率(WVGA,WXGA和放大器; 720P)。
任何人都知道为什么这种行为发生?
如何解决这个问题?
wvga image
wxga image
720pimage
This appears differently in each resolutions (wvga,wxga & 720p).
Anybody knows why this behaviour happens?
How to resolve this issue?
答
这是一个已知的问题(认为它有另外的*问题,但我couldn 't用分数像素是如何制定出找到它) - 你可以看到通过你的项目之间的差距显示网格的背景。
This is a known issue (thought it had another * question but I couldn't find it) with how the fractional pixels work out - you can see the background of the Grid showing through "gaps" between your items.
您可以通过将网格白色
的背景修复它。
You can fix it by making the Background of the Grid White
.