vue-java-tutorials/CSharp/WPFTutorial/WPF-2-Grid/MainWindow.xaml

26 lines
1.0 KiB
XML

<Window x:Class="WPF_2_Grid.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Border Grid.Row="0" Grid.Column="0" Background="Red">
<Button Height="50">111</Button>
</Border>
<Border Grid.Row="0" Grid.Column="1" Background="Yellow" />
<Border Grid.Row="1" Grid.Column="0" Background="Blue" />
<Border Grid.Row="1" Grid.Column="1" Background="Green" />
</Grid>
</Window>