I have WrapPanel
with icons.
I want to create it line by line (5 items per line).
So, my code:
<WrapPanel Grid.Row="3"
Grid.RowSpan="2"
Grid.Column="4"
x:Name="wpIcons">
</WrapPanel>
foreach(var ic in obj.Icons)
{
BitmapImage bi = new BitmapImage();
bi.BeginInit();
bi.StreamSource = new MemoryStream(ic.image);
bi.EndInit();
Image im = new Image();
im.Source = bi;
wpIcons.Children.Add(im);
}
So, it works but not line by line.
How to make icons line by line?