0

ピボット ビューに横向きのページを 1 つ追加しようとしています。残りのページは縦向きのページです。

どうすればこれを達成できますか?

これは私が欲しいもののサンプルです

<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 に答える