I have a UserControl (XAML below) that has a ListBox that I want to display images inside a WrapPanel, where images are displayed as many as will fit on one row and then wra
Well, I finally stumbled upon the solution. I was adding my UserControl to a placeholder panel that looked like this:
However, when I switched it to a Grid instead, things started to work the way I wanted:
I think it has to do with the StackPanel not taking up all the vertical space by default, like the Grid is doing.