Code Snippet posted by:
Naimishforu | Posted on: 2/27/2011 | Category:
WPF Codes | Views: 1656 | Status:
[Member] [MVP] |
Points: 40
|
Alert Moderator
How to show data in ListBox control using two-column format. The ListBox control flows from left to right and from top to bottom.
Use ListBox Item Template and specify Uniform Grid equals to 2.
<ListBox Name="ListBox1">
<ListBox.ItemsPanel> <ItemsPanelTemplate> <UniformGrid Columns="2"/>
</ItemsPanelTemplate> </ListBox.ItemsPanel></ListBox>
Thanks,
Naimish
http://dotnetinterview.zxq.net/
http://naimishpandya.blogspot.in/