1. 布局结果如下
2. XAML代码
<Window x:Class="项目10.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"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
xmlns:local="clr-namespace:项目10"
mc:Ignorable="d"
Title="MainWindow" Width="500" Height="850" MinWidth="300" MinHeight="500" WindowStartupLocation="CenterScreen">
<Border Padding="15">
<StackPanel>
<!-- Button -->
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Button Grid.Column="0" x:Name="ButtonApply" Margin="0 0 10 0">Apply</Button>
<Button Grid.Column="1" x:Name="ButtonReset" Margin="3 0 3 0">Reset</Button>
<Button Grid.Column="2" x:Name="ButtonRefresh" Margin="10 0 10 0">Refresh</Button>
</Grid>
<!-- Description -->
<TextBlock Margin="0 10" FontWeight="Bold">Pluse Properties</TextBlock>
<TextBlock>Description</TextBlock>
<TextBox Padding="2"></TextBox>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<!--Stauts-->
<StackPanel Grid.Column="0" Margin="0 0 10 0" Orientation="Vertical">
<TextBlock>Status</TextBlock>
<TextBox IsReadOnly="True" Padding="2" Background="#eee"></TextBox>
</StackPanel>
<StackPanel Grid.Column="1" Orientation="Vertical">
<TextBlock>Revision</TextBlock>
<TextBox IsReadOnly="True" Padding="2" Background="#eee"></TextBox>
</StackPanel>
</Grid>
<TextBlock>Part Number</TextBlock>
<TextBox IsReadOnly="True" Padding="2" Background="#eee"></TextBox>
<TextBlock Margin="0 10" FontWeight="Bold">Raw Material</TextBlock>
<TextBlock>Material</TextBlock>
<ComboBox Padding="2"></ComboBox>
<TextBlock Margin="0 10" FontWeight="Bold">Manufacturing informations</TextBlock>
<TextBlock>Work Centers</TextBlock>
<Grid Margin="2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="0" Margin="0,0,10,0" Orientation="Vertical">
<CheckBox Margin="1">Weld</CheckBox>
<CheckBox Margin="1">Assembly</CheckBox>
<CheckBox Margin="1">Plasma</CheckBox>
<CheckBox Margin="1">Laser</CheckBox>
<CheckBox Margin="1">Purchase</CheckBox>
</StackPanel>
<StackPanel Grid.Column="1" Orientation="Vertical">
<CheckBox Margin="1">Lathe</CheckBox>
<CheckBox Margin="1">Drill</CheckBox>
<CheckBox Margin="1">Fold</CheckBox>
<CheckBox Margin="1">Roll</CheckBox>
<CheckBox Margin="1">Saw</CheckBox>
</StackPanel>
</Grid>
<TextBlock Margin="0,3">Lenth</TextBlock>
<TextBox Padding="3"></TextBox>
<TextBlock Margin="0,3">Mass</TextBlock>
<TextBox IsReadOnly="True" Padding="2" Background="#eee"></TextBox>
<TextBlock Margin="0,3">Finish</TextBlock>
<ComboBox Padding="2" SelectedIndex="0">
<ComboBoxItem>Painted</ComboBoxItem>
<ComboBoxItem>UnPainted</ComboBoxItem>
</ComboBox>
<TextBlock Margin="0,3">Purchase information</TextBlock>
<ComboBox Padding="2" SelectedIndex="0">
<ComboBoxItem>Rubber</ComboBoxItem>
<ComboBoxItem>UnRubber</ComboBoxItem>
</ComboBox>
<TextBlock Margin="0,3">Supplier Name</TextBlock>
<TextBox Padding="2"></TextBox>
<TextBlock Margin="0,3">Supplier Code</TextBlock>
<TextBox Padding="2"></TextBox>
<TextBlock Margin="0 10" FontWeight="Bold">Additional information</TextBlock>
<TextBlock>Note</TextBlock>
<TextBox Padding="2"></TextBox>
</StackPanel>
</Border>
</Window>