2011-03-15 7 views
1

ホーム画面のリストに似た画像ボタンやXBOXLiveゲームアプリのコレクションリストを作成しようとしています。使用する必要があるコントロールのタイプと、アイテムを垂直方向にスクロールするリストのために構造を構成する方法が不明です。WP7で2列のメニューリストを作成するには

答えて

1

あなたはretemplateできListBox(または類似)が、それはScrollViewerの内側(silverlight toolkitから)WrapPanel内のアイテムを入れるために(あなたが決める)は、おそらく簡単です。

この例では、ボタンを使用していますが、画像や何でも使用することができます

<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.実際には、上記のテストを行った後、ボタンは不要なので、スクロール中に画像を選択する際には注意が必要です。

関連する問題