<Window x:Class="Main"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="WPF" Height="200" Width="250">
<Grid ShowGridLines="True">
<Grid.RowDefinitions>
<RowDefinition MinHeight="50" />
<RowDefinition Height="2*" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="50" />
<ColumnDefinition Width="2*" />
<ColumnDefinition Width="3*" />
</Grid.ColumnDefinitions>
<Button Content="Button spanning 3 rows" Grid.RowSpan="3">
<Button.LayoutTransform>
<RotateTransform Angle="90" />
</Button.LayoutTransform>
</Button>
<Button Content="Button spanning 2 columns" Grid.Column="1"
Grid.Row="0" Grid.ColumnSpan="2" />
<Button Content="Button" Grid.Column="2" Grid.Row="2"/>
</Grid>
</Window>
|