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

            <Border
                Width="30"
                Height="3"
                Margin="0,4,0,0"
                VerticalAlignment="Center"
                Background="{DynamicResource TitleBarSecondaryForegroundBrush}"
                CornerRadius="1.5" />
        </Grid>
        <StackPanel Margin="16">
            <StackPanel Margin="0,8,0,0">
                <TextBlock Focusable="True" 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"
                    Focusable="True"
                    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"
                    Focusable="True"
                    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
                    Grid.Column="2"
                    HorizontalAlignment="Stretch"
                    Click="OnCancel"
                    Content="{x:Static props:Resources.Cancel}"
                    Style="{StaticResource DefaultButtonStyle}"
                    TabIndex="1" />
                <Button
                    HorizontalAlignment="Stretch"
                    Click="OnSave"
                    Content="{x:Static props:Resources.Save}"
                    Style="{StaticResource AccentButtonStyle}"
                    TabIndex="0" />
            </Grid>
        </StackPanel>
    </Grid>
</local:EditorWindow>