Sample Overview

The WrapPanel sample is located within the ControlExamples/WindowsPhoneToolkit/WrapPanel directory in the WPUnleashed.Examples project in the downloadable sample code.

The WrapPanelView.xaml presents two WrapPanels, one with the default horizontal orientation, the other with a vertical orientation. Each WrapPanel contains five TextBox child elements, as shown in the following excerpt:

<StackPanel x:Name="ContentPanel" Grid.Row="1">    <TextBlock Text="horizontal wrap panel"        Style="{StaticResource LabelTextIndentedStyle}" />    <toolkit:WrapPanel ItemHeight="120" ItemWidth="120" Height="280"            Background="DimGray">        <TextBox Text="1" Background="Blue"            Style="{StaticResource ...

Get Windows® Phone 8 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.