是否可以将一个矩形或图像扩展到全景视图的3页上,目前它只是在第一页上,但我想将它扩展到其他视图上。
我不知道我应该设置什么项目的边距或宽度,全景图、全景图或长方形,我已经试过了al 3,但仍然没有工作。
<phone:PanoramaItem Header="third item" Orientation="Horizontal">
<!--Double wide Panorama with large image placeholders-->
<Grid >
<ListBox x:Name="lst">
<ListBox.ItemTemplate>
<DataTemplate>
<Rectangle Margin="10" Width="200" Height="200" Fill="Red"/>
</DataTemplate>
</ListBox.ItemTemplate>
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel Orientation="Horizontal"/>
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
</ListBox>
</Grid>
</phone:PanoramaItem>我已经尝试过上面的代码,但是它没有显示任何东西?
发布于 2013-07-18 09:36:37
是的是可能的。在全景中,只需将Orientation=放在“水平”,如果您正在使用列表框,只需将itempanel设置为stackpanal方向水平。
<controls:PanoramaItem Orientation="Horizontal" Header="item1">
<Grid >
<ListBox x:Name="lst">
<ListBox.ItemTemplate>
<DataTemplate>
<Image Margin="10" Source="{Binding}" Width="200" Height="200"/>
</DataTemplate>
</ListBox.ItemTemplate>
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel Orientation="Horizontal"/>
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
</ListBox>
</Grid>
</controls:PanoramaItem>https://stackoverflow.com/questions/17719406
复制相似问题