我想在我的xaml代碼中製作一個2x2的矩形。 (我用的windows phone佈局全景控制) 這樣的..我有一個關於窗口手機佈局的問題
○○
○○
我用這個代碼。
<ListBox.ItemTemplate>
<DataTemplate>
<StackPanel FlowDirection="LeftToRight" Orientation="Horizontal" Margin="0,0,0,17">
<!--Replace rectangle with image-->
<Rectangle Height="100" Width="100" Fill="Orange" Margin="12,0,9,0"/>
<StackPanel Width="311">
<TextBlock Text="{Binding LineOne}" TextWrapping="Wrap" Style="{StaticResource PhoneTextExtraLargeStyle}"/>
<TextBlock Text="{Binding LineTwo}" TextWrapping="Wrap" Margin="12,-6,12,0" Style="{StaticResource PhoneTextSubtleStyle}"/>
</StackPanel>
</StackPanel>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</controls:PanoramaItem>
但使...
Ø
Ø
Ø
Ø
我該如何解決這個問題? 讓我知道!請! Thanx! :)
如果我正確理解你,你需要在「矩形」中佈置你的物品?所以,嘗試使用WrapPanel http://windowsphonegeek.com/articles/WP7-WrapPanel-in-depth –