<controls:MetroWindow x:Class="LunarSF.SHomeWorkshop.LunarMarkdownEditor.AddEnToChEntryWindow"
                      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:LunarSF.SHomeWorkshop.LunarMarkdownEditor"
                      xmlns:controls="http://metro.mahapps.com/winfx/xaml/controls"
                      xmlns:xeed="http://schemas.xceed.com/wpf/xaml/toolkit"
                      mc:Ignorable="d"
                      Icon="App.png"
                      BorderBrush="#FFBB6115"
                      BorderThickness="1"
                      GlowBrush="#FFBB6115"
                      FontFamily="Simsun"
                      TextOptions.TextFormattingMode="Display"
                      Padding="0"
                      SizeToContent="WidthAndHeight"
                      Topmost="True">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="auto" />
            <ColumnDefinition />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <Grid.Resources>
            <Style TargetType="Label">
                <Setter Property="VerticalAlignment"
                        Value="Center" />
                <Setter Property="HorizontalAlignment"
                        Value="Right" />
            </Style>
            <Style TargetType="xeed:AutoSelectTextBox">
                <Setter Property="VerticalAlignment"
                        Value="Center" />
                <Setter Property="HorizontalAlignment"
                        Value="Stretch" />
                <Setter Property="Margin"
                        Value="10" />
                <Setter Property="Width"
                        Value="200" />
                <Setter Property="FontSize"
                        Value="14" />
            </Style>
        </Grid.Resources>

        <Label>中文:</Label>
        <xeed:AutoSelectTextBox Name="tbxCh"
                                AcceptsReturn="False"
                                AcceptsTab="False"
                                InputMethod.IsInputMethodEnabled="True"
                                Grid.Column="1" />
        <Label Grid.Column="2">(必填)</Label>

        <Label Grid.Row="1">英文:</Label>
        <xeed:AutoSelectTextBox Name="tbxEn"
                                AcceptsReturn="False"
                                AcceptsTab="False"
                                Grid.Row="1"
                                InputMethod.IsInputMethodEnabled="False"
                                Grid.Column="1" />
        <Label Grid.Column="2"
               Grid.Row="1">(必填)</Label>

        <Label Grid.Row="2">缩写:</Label>
        <xeed:AutoSelectTextBox Name="tbxAlpha"
                                AcceptsReturn="False"
                                AcceptsTab="False"
                                Grid.Column="1"
                                InputMethod.IsInputMethodEnabled="False"
                                Grid.Row="2"></xeed:AutoSelectTextBox>
        <Label Grid.Column="2"
               Grid.Row="2">(必填)</Label>

        <Label Grid.Row="3">注释:</Label>
        <xeed:AutoSelectTextBox Name="tbxComment"
                                Grid.Column="1"
                                AcceptsReturn="False"
                                AcceptsTab="False"
                                InputMethod.IsInputMethodEnabled="True"
                                Grid.Row="3"></xeed:AutoSelectTextBox>

        <Grid Grid.Row="4"
              Grid.ColumnSpan="3"
              Margin="10,10">
            <Grid.ColumnDefinitions>
                <ColumnDefinition />
                <ColumnDefinition />
            </Grid.ColumnDefinitions>
            <CheckBox Name="ckxAddToUserDict" IsChecked="False">添加到用户词典</CheckBox>
            <CheckBox Name="ckxAddToWorkspace"
                      Grid.Column="1" IsChecked="True">添加到工作区词典</CheckBox>
        </Grid>

        <DockPanel Grid.Row="5"
                   Grid.ColumnSpan="3"
                   LastChildFill="False">
            <DockPanel.Resources>
                <Style TargetType="Button">
                    <Setter Property="BorderBrush"
                            Value="Black" />
                    <Setter Property="FontFamily"
                            Value="SimSun" />
                </Style>
            </DockPanel.Resources>
            <Button Name="btnClose"
                    DockPanel.Dock="Right"
                    BorderThickness="1"
                    Margin="10,4"
                    Padding="10,4"
                    FontWeight="Normal"
                    Style="{StaticResource ResourceKey=SquareButtonStyle}"
                    Click="btnClose_Click">放弃(_X)</Button>

            <Button Name="btnOk"
                    DockPanel.Dock="Right"
                    BorderThickness="1"
                    Margin="10,4"
                    Padding="10,4"
                    FontWeight="Normal"
                    Style="{StaticResource ResourceKey=SquareButtonStyle}"
                    Click="btnOk_Click">添加(_A)</Button>

        </DockPanel>
    </Grid>
</controls:MetroWindow>