The VariableSizedWrapGrid is a panel that can create a typical title-based layout as was introduced with Windows 8. The VariableSizedWrapGrid is only available in WinRT. The VariableSizedWrapGrid arranges its children in row and columns. For example:
<
Page
x:Class
=
"App1.MainPage"
xmlns
"http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x
"http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local
"using:App1"
xmlns:d
"http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc
"http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable
"d"
>
Grid
Background
"{ThemeResource ApplicationPageBackgroundThemeBrush}"
VariableSizedWrapGrid
Button
Content
"A"
></
"B"
"Red"
"C"
"D"
"E"
"F"
</
</Page
Orientation
"Horizontal"
ItemWidth
"200"
ItemHeight
"100"
Rectangle
Fill
"LightGray"
/>
"LightBlue"
"Tomato"
"Purple"
"Yellow"
"Green"
"Blue"
"Orange"
MaximumRowsOrColumns
"2"
"Vertical"
"Khaki"
VariableSizedWrapGrid.ColumnSpan
VariableSizedWrapGrid.RowSpan