Windows phone 7 如何在WP7中创建两列菜单列表
我正在尝试创建一个图像按钮的菜单列表,类似于XBOXLive游戏应用程序中的主屏幕列表或集合列表。不确定我需要使用什么类型的控件,以及如何为垂直滚动的项目列表构造它们。您可以重新配置Windows phone 7 如何在WP7中创建两列菜单列表,windows-phone-7,Windows Phone 7,我正在尝试创建一个图像按钮的菜单列表,类似于XBOXLive游戏应用程序中的主屏幕列表或集合列表。不确定我需要使用什么类型的控件,以及如何为垂直滚动的项目列表构造它们。您可以重新配置列表框(或类似),但将项目放入滚动查看器中的包装盒(从中)可能更简单(由您决定) 此示例使用按钮,但您可以使用图像或任何内容: <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0"> <ScrollViewer>
列表框
(或类似),但将项目放入滚动查看器中的包装盒
(从中)可能更简单(由您决定)
此示例使用按钮,但您可以使用图像或任何内容:
<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
<ScrollViewer>
<toolkit:WrapPanel>
<Button Width="200" Height="200" Content="option1"/>
<Button Width="200" Height="200" Content="option2"/>
<Button Width="200" Height="200" Content="option3"/>
<Button Width="200" Height="200" Content="option4"/>
<Button Width="200" Height="200" Content="option5"/>
<Button Width="200" Height="200" Content="option6"/>
<Button Width="200" Height="200" Content="option7"/>
<Button Width="200" Height="200" Content="option8"/>
<Button Width="200" Height="200" Content="option9"/>
</toolkit:WrapPanel>
</ScrollViewer>
</Grid>
N.B.事实上,在测试上述内容之后,您可能不需要按钮,并且在滚动时需要小心选择图像。您可以重新模板化一个列表框(或类似),但将项目放入包装框(从在滚动查看器中
此示例使用按钮,但您可以使用图像或任何内容:
<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
<ScrollViewer>
<toolkit:WrapPanel>
<Button Width="200" Height="200" Content="option1"/>
<Button Width="200" Height="200" Content="option2"/>
<Button Width="200" Height="200" Content="option3"/>
<Button Width="200" Height="200" Content="option4"/>
<Button Width="200" Height="200" Content="option5"/>
<Button Width="200" Height="200" Content="option6"/>
<Button Width="200" Height="200" Content="option7"/>
<Button Width="200" Height="200" Content="option8"/>
<Button Width="200" Height="200" Content="option9"/>
</toolkit:WrapPanel>
</ScrollViewer>
</Grid>
N.B.实际上,在测试了上述内容之后,您可能不需要按钮,在滚动时选择图像时需要小心