首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在windows phone 7中更改全景水平宽度

如何在windows phone 7中更改全景水平宽度
EN

Stack Overflow用户
提问于 2012-03-16 09:36:09
回答 2查看 3.3K关注 0票数 0

我想在WP7中创建一个全景页面,使用内容中的wrap面板。

我想创建一些像人民中心,几个轮毂(即5)和花费的宽度比1个单一的全景项目宽度更大。

我会尝试设置包装面板的宽度,panoramaItem宽度,仍然没有机会让它像在PeopleHub中一样工作。

有人能在这方面帮我吗?

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2012-03-16 13:06:50

此代码适用于8 TileButton (Bewise controls),但与Hubtile相同

代码语言:javascript
复制
<controls:PanoramaItem Header="home" Orientation="Horizontal" Width="850">
                <Grid>
                    <ListBox Margin="0,0,-12,86" ItemsSource="{Binding Children}" Height="380">
                    <ListBox.ItemsPanel>
                        <ItemsPanelTemplate>
                            <toolkit:WrapPanel Orientation="Horizontal" />
                        </ItemsPanelTemplate>
                    </ListBox.ItemsPanel>
                    <ListBox.Template>
                        <ControlTemplate>
                            <ItemsPresenter />
                        </ControlTemplate>
                    </ListBox.Template>
                    <ListBox.ItemTemplate>
                        <DataTemplate>
                            <Grid>
                                <Bewise:TileButton ImageSource="{Binding Image}" Text="{Binding Name}" Margin="10" />
                            </Grid>
                        </DataTemplate>
                    </ListBox.ItemTemplate>
                </ListBox>
                    <TextBlock Height="48" HorizontalAlignment="Left" Margin="15,389,0,0" Name="textBlock1" Text="view all" VerticalAlignment="Top" FontSize="36" Width="201" />
                </Grid>
            </controls:PanoramaItem>
票数 0
EN

Stack Overflow用户

发布于 2012-03-16 12:26:57

要更改全景项目的宽度,只需设置Orientation = "Horizontal“即可。我想这会解决你的问题。

问候

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/9730687

复制
相关文章

相似问题

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