Awesome
Avalonia Fixed WrapPanel
Avalonia WrapPanel with fixed number of items per line
<img src="Images/AvaloniaFixedWrapPanelDemo.gif" width="500">How to use
- Add NuGet package
MikD1.AvaloniaFixedWrapPanel
- Add namesace to XAML file
xmlns:afwp="clr-namespace:AvaloniaFixedWrapPanel;assembly=AvaloniaFixedWrapPanel"
- Use FixedWrapPanel
<ItemsControl Items="{Binding Items}">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<afwp:FixedWrapPanel ItemsPerLine="5" />
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<DataTemplate>
<Border>
<TextBlock Text="Some text"/>
</Border>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>