<Grid>
<ListBox Height="181" HorizontalAlignment="Left" Margin="12,12,0,0" Name="listBox1" VerticalAlignment="Top" Width="687" UseLayoutRounding="False" Panel.ZIndex="2" >
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<UniformGrid />
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
</ListBox>
</Grid>
此方法同样适用与ListView中
本文出自 “11017815” 博客,请务必保留此出处http://11027815.blog.51cto.com/11017815/1860678
原文:http://11027815.blog.51cto.com/11017815/1860678