<StackPanel >
<ListBox Margin="5" HorizontalAlignment="Left" Width="100" Height="300">
<ListBoxItem Content='文件管理' Margin="10" HorizontalAlignment="Center"></ListBoxItem>
<ListBoxItem Content='资料查找' Margin="10" HorizontalAlignment="Center"/>
<ListBoxItem Content='清单查看' Margin="10" HorizontalAlignment="Center"/>
<ListBoxItem Content='人员管理' Margin="10" HorizontalAlignment="Center"/>
</ListBox>
<Button Click="Button_Click" HorizontalAlignment="Center" Width="50" Height="20">随便</Button>
</StackPanel>
<Grid>
<Grid.ColumnDefinitions>//列设置
<ColumnDefinition Width="*"></ColumnDefinition>//创建第一列
<ColumnDefinition Width="2*"></ColumnDefinition>//创建第二列
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="*"></RowDefinition>//创建第一行
<RowDefinition Height="*"></RowDefinition>//创建第二行
</Grid.RowDefinitions>//行设置
<Button Grid.Column="0">click 1</Button>//创建按钮1
<Button Grid.Column="1">click 2</Button>//创建按钮2
<Button Grid.Row="1" Grid.Column="0">click 3</Button>//创建按钮3
<Button Grid.Row="1" Grid.Column="1">click 4</Button>//创建按钮4
</Grid>