<local:EditorWindow x:Class="FancyZonesEditor.GridEditorWindow"
                    AutomationProperties.Name="{x:Static props:Resources.Grid_Layout_Editor}"
                    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:FancyZonesEditor"
                    xmlns:props="clr-namespace:FancyZonesEditor.Properties"
                    mc:Ignorable="d"
                    Title=""
                    MinWidth="360"
                    BorderThickness="0"
                    xmlns:ui="http://schemas.modernwpf.com/2019"
                    ui:WindowHelper.UseModernWindowStyle="True"
                    ui:TitleBar.IsIconVisible="False"
                    SizeToContent="WidthAndHeight"
                    Background="{DynamicResource PrimaryBackgroundBrush}"
                    ResizeMode="NoResize"
                    WindowStartupLocation="CenterOwner"
                    ContentRendered="EditorWindow_ContentRendered"
                    Closed="OnClosed">
    <Grid>
        <Grid
            Height="36"
            Background="{DynamicResource SecondaryBackgroundBrush}"
            Margin="0,-36,0,0"
            VerticalAlignment="Top"
            HorizontalAlignment="Stretch">

            <Border
                Background="{DynamicResource TitleBarSecondaryForegroundBrush}"
                Width="30"
                Height="3"
                CornerRadius="1.5"
                VerticalAlignment="Center"
                Margin="0,4,0,0" />
        </Grid>
        <StackPanel Margin="16">
            <StackPanel Margin="0,8,0,0">
                <TextBlock 
                    TextWrapping="Wrap">
                    <Run 
                        FontWeight="Bold" 
                        Text="{x:Static props:Resources.SplitterName}" />
                    <Run Text="{x:Static props:Resources.SplitterDescription}" />
                </TextBlock>
                <TextBlock 
                    Margin="0,8,0,0"
                    TextWrapping="Wrap">
                    <Run 
                        FontWeight="Bold" 
                        Text="{x:Static props:Resources.MergeName}" />
                    <Run Text="{x:Static props:Resources.MergeDescription}" />
                </TextBlock>
                <TextBlock 
                    Margin="0,8,0,0"
                    TextWrapping="Wrap">
                    <Run 
                        FontWeight="Bold" 
                        Text="{x:Static props:Resources.KeyboardControlsName}" />
                    <Run Text="{x:Static props:Resources.KeyboardControlsDescription}" />
                </TextBlock>
            </StackPanel>
            <Grid Margin="0,24,0,-36">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="8"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <Button Content="{x:Static props:Resources.Cancel}"
                    Style="{StaticResource DefaultButtonStyle}"
                    HorizontalAlignment="Stretch"
                    TabIndex="1"
                    Grid.Column="2"
                    Click="OnCancel" />
                <Button Content="{x:Static props:Resources.Save_Apply}"
                    Style="{StaticResource AccentButtonStyle}"
                    TabIndex="0"
                    HorizontalAlignment="Stretch"
                    Click="OnSaveApplyTemplate" />
            </Grid>
        </StackPanel>
    </Grid>
</local:EditorWindow>