首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >全景将矩形扩展到3页以上

全景将矩形扩展到3页以上
EN

Stack Overflow用户
提问于 2013-07-18 09:20:45
回答 1查看 145关注 0票数 0

是否可以将一个矩形或图像扩展到全景视图的3页上,目前它只是在第一页上,但我想将它扩展到其他视图上。

我不知道我应该设置什么项目的边距或宽度,全景图、全景图或长方形,我已经试过了al 3,但仍然没有工作。

代码语言:javascript
复制
<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>

我已经尝试过上面的代码,但是它没有显示任何东西?

EN

回答 1

Stack Overflow用户

发布于 2013-07-18 09:36:37

是的是可能的。在全景中,只需将Orientation=放在“水平”,如果您正在使用列表框,只需将itempanel设置为stackpanal方向水平。

代码语言:javascript
复制
  <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>
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/17719406

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档