To get a ListBox with multiple columns, each unit is an item of ListBox, as shown below:
Corresponding XAML:
< Grid X: Name = "Loginnosubspanel" Visibility = "Visible" > < ListBox X: Name = "Hotkeywordslistbox" Itemssource =" {Binding recommendedtopicsleft} " > < ListBox. itemspanel > < Itemspaneltemplate > < Toolkit: wrappanel Itemheight = "176" Itemwidth = "176" /> </ Itemspaneltemplate > </ ListBox. itemspanel > < ListBox. itemtemplate > < Datatemplate > < Grid Margin = "20, 0, 0, 20" > < Grid. rowdefinitions > < Rowdefinition Height = "Auto" /> < Rowdefinition Height = "*" /> </ Grid. rowdefinitions > < Image Grid. Row = "0" Source =" {Binding imagesource} " Height = "140" Width = "176" Margin = "0" Stretch = "Uniform" /> < Button Grid. Row = "0" Horizontalalignment = "Center" Verticalalignment = "Center" Margin = "0" Padding = "0" Borderthickness = "0" > < Button. Content > < Image Source = "/Assets/btnicons/unchoose_2.png" Width = "36" Height = "36" /> </ Button. Content > </ Button > < Textblock Grid. Row = "1" Text =" {Binding keywords} " Fontsize =" {Staticresource phonefontsizenormal} " /> < Rectangle Grid. rowspan = "2" Stroke = "Gray" /> </ Grid > </ Datatemplate > </ ListBox. itemtemplate > </ ListBox > </ Grid >
Set itemspanel and use Toolkit: wrappanel.