在不同分辨率的Windows Phone 8设备的奇怪显示行为(WVGA,WXGA,&安培; 720P) [英] Strange display behaviour of Windows Phone 8 device in different resolutions(WVGA,WXGA,&720P)

查看:130
本文介绍了在不同分辨率的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?

推荐答案

这是一个已知的问题(认为它有另外的StackOverflow问题,但我couldn 't用分数像素是如何制定出找到它) - 你可以看到通过你的项目之间的差距显示网格的背景。

This is a known issue (thought it had another StackOverflow 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.

这篇关于在不同分辨率的Windows Phone 8设备的奇怪显示行为(WVGA,WXGA,&安培; 720P)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆