WrapPanel in Silverlight related CLR objects
Can anyone help me? I need to link CLR objects to WrapPanel in SILVERLIGHT. What should be displayed at the end is a couple of thumbnail images with their description (text). I know how to do this with a ListBox, but I need it to be a WrapPanel, so my Thumbs will display horizontally and break into a new raw ... etc.
0
Agi
source
to share
2 answers
In this case, you still want your control to be a ListBox, but you set the ItemsPanel of the ListBox to be a WrapPanel like
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<WrapPanel IsItemsHost="True" />
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
Then it will display the items horizontally and wrap to the end of the line.
0
source to share