我想在WP7中创建一个全景页面,使用内容中的wrap面板。
我想创建一些像人民中心,几个轮毂(即5)和花费的宽度比1个单一的全景项目宽度更大。
我会尝试设置包装面板的宽度,panoramaItem宽度,仍然没有机会让它像在PeopleHub中一样工作。
有人能在这方面帮我吗?
发布于 2012-03-16 13:06:50
此代码适用于8 TileButton (Bewise controls),但与Hubtile相同
<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>发布于 2012-03-16 12:26:57
要更改全景项目的宽度,只需设置Orientation = "Horizontal“即可。我想这会解决你的问题。
问候
https://stackoverflow.com/questions/9730687
复制相似问题