如果您希望下一個全景圖項目顯示在左側,那麼您可以使用CompositeTransforms進行播放。事情是這樣的:
<phone:PhoneApplicationPage.Resources>
<DataTemplate x:Key="PanoramaTitleTemplate">
<TextBlock Text="{Binding}"
FontSize="48"
Margin="12,24"
RenderTransformOrigin="0.5,0.5">
<TextBlock.RenderTransform>
<CompositeTransform ScaleX="-1" />
</TextBlock.RenderTransform>
</TextBlock>
</DataTemplate>
<DataTemplate x:Key="PanoramaItemHeaderTemplate">
<TextBlock Text="{Binding}"
FontSize="52"
MinWidth="380"
TextAlignment="Right">
</TextBlock>
</DataTemplate>
</phone:PhoneApplicationPage.Resources>
<!--LayoutRoot is the root grid where all page content is placed-->
<Grid x:Name="LayoutRoot" Background="Transparent">
<phone:Panorama Title="Panorama"
RenderTransformOrigin="0.5,0.5"
TitleTemplate="{StaticResource PanoramaTitleTemplate}">
<phone:Panorama.RenderTransform>
<CompositeTransform ScaleX="-1" />
</phone:Panorama.RenderTransform>
<phone:PanoramaItem Header="Header1"
RenderTransformOrigin="0.5,0.5"
HeaderTemplate="{StaticResource PanoramaItemHeaderTemplate}">
<phone:PanoramaItem.RenderTransform>
<CompositeTransform ScaleX="-1" />
</phone:PanoramaItem.RenderTransform>
<Grid Background="DarkBlue" />
</phone:PanoramaItem>
<phone:PanoramaItem Header="Header2"
RenderTransformOrigin="0.5,0.5"
HeaderTemplate="{StaticResource PanoramaItemHeaderTemplate}">
<phone:PanoramaItem.RenderTransform>
<CompositeTransform ScaleX="-1" />
</phone:PanoramaItem.RenderTransform>
<Grid Background="DarkCyan" />
</phone:PanoramaItem>
<phone:PanoramaItem Header="Header3"
RenderTransformOrigin="0.5,0.5"
HeaderTemplate="{StaticResource PanoramaItemHeaderTemplate}">
<phone:PanoramaItem.RenderTransform>
<CompositeTransform ScaleX="-1" />
</phone:PanoramaItem.RenderTransform>
<Grid Background="DarkGoldenrod" />
</phone:PanoramaItem>
</phone:Panorama>
</Grid>
您也可以從左至右滑動全景模板中的默認是正確的你想實現什麼?清楚地說明。 –
我想在默認的相反方向上滑動 –