Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/263.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Windows Phone 8设备在不同分辨率(WVGA、WXGA和720P)下的奇怪显示行为_C#_Windows Phone 8 - Fatal编程技术网

C# Windows Phone 8设备在不同分辨率(WVGA、WXGA和720P)下的奇怪显示行为

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="*" />

这是我的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图像

这在每种分辨率(wvga、wxga和720p)中显示不同。 有人知道为什么会发生这种行为吗? 如何解决这个问题?

这是一个已知的问题(虽然它有另一个StackOverflow问题,但我找不到),分数像素是如何工作的-您可以通过项目之间的“间隙”看到网格背景

您可以通过将网格背景设置为白色来修复它