<UserControl
    x:Class="FancyZonesEditor.GridEditor"
    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"
    d:DesignHeight="450"
    d:DesignWidth="800"
    mc:Ignorable="d">
    <UserControl.Resources>
        <Style TargetType="Button">
            <Setter Property="FontFamily" Value="Segoe UI" />
            <Setter Property="FontWeight" Value="SemiBold" />
            <Setter Property="Foreground" Value="Black" />
            <Setter Property="FontSize" Value="14" />
            <Setter Property="BorderThickness" Value="0" />
            <Setter Property="Background" Value="#F2F2F2" />
            <Setter Property="Width" Value="150" />
        </Style>
    </UserControl.Resources>
    <Viewbox Stretch="Uniform">
        <Grid>
            <Canvas x:Name="Preview" />
            <Canvas x:Name="AdornerLayer" />
            <Canvas
                x:Name="MergePanel"
                MouseUp="MergePanelMouseUp"
                Visibility="Collapsed">

                <StackPanel
                    x:Name="MergeButtons"
                    Background="Gray"
                    Orientation="Horizontal">
                    <Button
                        Width="134"
                        Height="36"
                        Margin="0"
                        Click="MergeClick">
                        <StackPanel Orientation="Horizontal">
                            <Image
                                Height="16"
                                Margin="0,0,12,0"
                                HorizontalAlignment="Left"
                                Source="images/Merge.png" />
                            <TextBlock Text="Merge zones" />
                        </StackPanel>
                    </Button>
                </StackPanel>
            </Canvas>
        </Grid>
    </Viewbox>
</UserControl>