Silverlight Tip: ScrollViewer for a WrapPanel

The Silverlight wrap panel is a great control which automatically wraps the elements in it either horizontally or vertically as required to fit them within the size of the panel.

Using a wrap panel is fairly simple and straight forward.

<ControlsToolkit:WrapPanel Orientation="Horizontal">
    <TextBlock Text="Item 1"/>
    <TextBlock Text="Item 2"/>
    <TextBlock Text="Item 3"/>
    ...
</ControlsToolkit:WrapPanel>

Continue reading