Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/jquery-mobile/2.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
Windows phone 7 Windows Phone 7.x不会以所有屏幕大小显示内容_Windows Phone 7_Windows Phone 8_Windows Phone_Windows Phone 8.1_Windows Phone 7.1 - Fatal编程技术网

Windows phone 7 Windows Phone 7.x不会以所有屏幕大小显示内容

Windows phone 7 Windows Phone 7.x不会以所有屏幕大小显示内容,windows-phone-7,windows-phone-8,windows-phone,windows-phone-8.1,windows-phone-7.1,Windows Phone 7,Windows Phone 8,Windows Phone,Windows Phone 8.1,Windows Phone 7.1,我发现了问题所在。 在W.P.7.1中,并非所有屏幕尺寸都显示相同的xaml,但在W.P.8中显示相同的xaml。 有一个带有红色边框的标准项目模板,可以看到不同之处: <phone:PhoneApplicationPage x:Class="PhoneApp1.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/

我发现了问题所在。 在W.P.7.1中,并非所有屏幕尺寸都显示相同的xaml,但在W.P.8中显示相同的xaml。 有一个带有红色边框的标准项目模板,可以看到不同之处:

<phone:PhoneApplicationPage 
x:Class="PhoneApp1.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
shell:SystemTray.IsVisible="True">
<Border BorderBrush="Red" BorderThickness="2">
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
            <TextBlock x:Name="ApplicationTitle" Text="MY APPLICATION" Style="{StaticResource PhoneTextNormalStyle}"/>
            <TextBlock x:Name="PageTitle" Text="page name" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
        </StackPanel>
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0"></Grid>
    </Grid>
</Border>
请看截图-

左边的部分运行着7.1的项目目标,右边是8.0 仅针对emulator 720p进行复制。 请注意,即使在WinPhone 8.0上运行7.1目标应用程序,它也存在同样的问题。因此,原因不在于设备,而在于项目属性上的选定目标

如何修复它?
谢谢。

这是出于应用程序兼容性的原因而设计的。Windows Phone 7.x应用程序经过设计和测试,可在长宽比为480 x 800像素9:15的手机上运行。在9:16屏幕(如720p或1080p)的较新Windows Phone 8.x设备上运行时,空间太大,一些应用程序不知道如何使用这些空间。因此,对于为WP 7.x构建的应用程序,操作系统只保留屏幕的顶部,并对应用程序撒谎,告诉它仍然是480 x 800像素。

我至少可以更改此空间的颜色吗?更改页面背景没有帮助。谢谢。我想改变系统托盘的颜色就可以了。