//xaml <Window x:Class="WpfApp378.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:local="clr-namespace:WpfApp378" mc:Ignorable="d" WindowState="Maximized" Title="MainWindow" Height="450" Width="800"> <Grid ShowGridLines="True"> <Grid.ColumnDefinitions> <ColumnDefinition Width="500"/> <ColumnDefinition/> <ColumnDefinition/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition/> <RowDefinition/> <RowDefinition/> <RowDefinition/> </Grid.RowDefinitions> <Expander Header="Gramma Left" ExpandDirection="Left" Grid.Column="0" Grid.Row="0"> <StackPanel> <CheckBox>Check gramma as you type.</CheckBox> <CheckBox>Hide grammatical errors in this document.</CheckBox> <CheckBox>Check gramma with spelling.</CheckBox> </StackPanel> </Expander> <Expander Header="Gramma Right" ExpandDirection="Right" Grid.Column="0" Grid.Row="1"> <StackPanel> <CheckBox>Check gramma as you type.</CheckBox> <CheckBox>Hide grammatical errors in this document.</CheckBox> <CheckBox>Check gramma with spelling.</CheckBox> </StackPanel> </Expander> <Expander Header="Gramma Down" ExpandDirection="Down" Grid.Column="0" Grid.Row="2"> <StackPanel> <CheckBox>Check gramma as you type.</CheckBox> <CheckBox>Hide grammatical errors in this document.</CheckBox> <CheckBox>Check gramma with spelling.</CheckBox> </StackPanel> </Expander> <Expander Header="Gramma Up" ExpandDirection="Up" Grid.Column="0" Grid.Row="3"> <StackPanel> <CheckBox>Check gramma as you type.</CheckBox> <CheckBox>Hide grammatical errors in this document.</CheckBox> <CheckBox>Check gramma with spelling.</CheckBox> </StackPanel> </Expander> </Grid> </Window>
标签:Right,Up,gramma,Down,grammatical,errors,spelling,type,Check From: https://www.cnblogs.com/Fred1987/p/18419214