0

我正在尝试将一个横向页面添加到我的数据透视视图中。其余页面是纵向页面。

我怎样才能做到这一点?

这是我想要的样本

<phone:PhoneApplicationPage
    x:Class="BitcoinTicker.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:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DataContext="{d:DesignData SampleData/MainViewModelSampleData.xaml}"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait"  Orientation="Portrait">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">

        <!--Pivot Control-->
        <phone:Pivot Title="App title">

            <!--Pivot item one-->
            <phone:PivotItem Header="First">
                <!-- Portrait page -->
            </phone:PivotItem>

            <!--Pivot item two-->
            <phone:PivotItem Header="Second">
                <!-- Landscape page -->
            </phone:PivotItem>

        <!--Pivot item three -->
            <phone:PivotItem Header="Third">
                <!-- Portrait page -->
            </phone:PivotItem>
        </phone:Pivot>

    </Grid>
</phone:PhoneApplicationPage>

干杯

4

1 回答 1

0

您可能应该使用全景图并遵循某些 Windows Phone 设计指南。此处详细说明:http: //msdn.microsoft.com/library/windows/apps/hh202912 (v=vs.105).aspx

于 2015-01-01T09:56:54.650 回答