I have a list defined as follows:
<ListBox.ItemTemplate>
<DataTemplate>
<ItemsControl>
</ItemsControl>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
My problem is this: this list is contained in the grid control and should use all the available space of this cell in which it is contained, but it should not force the parent to allocate MORE space. But what happens is that after the wrapping panel is full, instead of actually wrapping the elements on the next line (as it should be), it simply expands the width of the list, and in the process also forces the parent grid to be resized.
How can I make the crawl panel respect the size of my parent, rather than force it to expand its size?
Thanks in advance!
edit: . , , , , .