在我的 Windows Phone 应用程序中,我有:
<controls:Panorama.ItemTemplate>
<DataTemplate>
<Grid Visibility="{Binding ItemVisibility}" Margin="0,-60,0,0">
<ScrollViewer Margin="0,0,0,0" VerticalAlignment="Top" Height="Auto">
<StackPanel Margin="0,0,0,0" Width="Auto" >
<RichTextBox x:Name="Browser" IsReadOnly="True" Foreground="Black" Height="Auto" cxi:WebBrowserHelper.Html="{Binding BrowserHtml}" HorizontalAlignment="Left" Width="460" Margin="0,0,0,0" AcceptsReturn="True" VerticalScrollBarVisibility="Visible" />
<Canvas Height="100" Width="0" />
</StackPanel>
</ScrollViewer>
</Grid>
</DataTemplate>
</controls:Panorama.ItemTemplate>
如何使 PanoramaItem 的方向 - 方向 =“水平”?
我努力了:
<controls:Panorama.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel Orientation="Horizontal" />
</ItemsPanelTemplate>
</controls:Panorama.ItemsPanel>
但是有 NullReference Exeption