<Window x:Class="WrapPanelSample.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
Title="WrapPanelSample">
<Grid>
<xctk:WrapPanel ItemWidth="100"
ItemHeight="100">
<Rectangle Margin="2, 2, 2, 2" Fill="Red"/>
<Rectangle Margin="2, 2, 2, 2" Fill="Blue"/>
<Rectangle Margin="2, 2, 2, 2" Fill="Green"/>
<Rectangle Margin="2, 2, 2, 2" Fill="Orange"/>
<Rectangle Margin="2, 2, 2, 2" Fill="Purple"/>
<Rectangle Margin="2, 2, 2, 2" Fill="Yellow"/>
</xctk:WrapPanel>
</Grid>
</Window>