1: <Controls:StackGrid>
2: <!-- Row definitions -->
3: <Controls:StackGrid.RowDefinitions>
4: <RowDefinition Height="Auto" />
5: <RowDefinition Height="Auto" />
6: <RowDefinition Height="Auto" />
7: <RowDefinition Height="Auto" MinHeight="15" />
8: <RowDefinition Height="Auto" />
9: </Controls:StackGrid.RowDefinitions>
10:
11: <!-- Column definitions -->
12: <Controls:StackGrid.ColumnDefinitions>
13: <ColumnDefinition Width="Auto" />
14: <ColumnDefinition Width="*" MinWidth="300" />
15: </Controls:StackGrid.ColumnDefinitions>
16:
17: <!-- First name, will be set to row 0, column 1 and 2 -->
18: <Label Content="First name" />
19: <TextBox Text="Geert" />
20:
21: <!-- Middle name, will be set to row 1, column 1 and 2 -->
22: <Label Content="Middle name" />
23: <TextBox Text="van" />
24:
25: <!-- Last name, will be set to row 2, column 1 and 2 -->
26: <Label Content="Last name" />
27: <TextBox Text="Horrik" />
28:
29: <!-- Empty row -->
30: <Controls:EmptyRow />
31:
32: <!-- Wrappanel, will span 2 columns -->
33: <WrapPanel Grid.ColumnSpan="2" Style="{StaticResource RightAlignedButtonsWrapPanelStyle}">
34: <Button Content="OK" Style="{StaticResource RightAlignedFixedSizeButtonStyle}" />
35: <Button Content="Cancel" Style="{StaticResource RightAlignedFixedSizeButtonStyle}" />
36: </WrapPanel>
37: </Controls:StackGrid>