<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"
    xmlns:props="clr-namespace:FancyZonesEditor.Properties"
    d:DesignHeight="450"
    d:DesignWidth="800"
    mc:Ignorable="d">
    <Viewbox Stretch="Uniform">
        <Grid>
            <Canvas x:Name="Preview" />
            <Canvas x:Name="AdornerLayer" />
            <Canvas
                x:Name="MergePanel"
                MouseUp="MergePanelMouseUp"
                Visibility="Collapsed">
                <Canvas.Effect>
                    <DropShadowEffect
                        BlurRadius="6"
                        Opacity="0.32"
                        ShadowDepth="2" />
                </Canvas.Effect>
                <StackPanel x:Name="MergeButtons" Orientation="Horizontal">
                    <Border Background="{DynamicResource PrimaryBackgroundBrush}" CornerRadius="4">

                        <Button
                            Width="134"
                            Height="36"
                            Margin="0"
                            Click="MergeClick"
                            Style="{StaticResource DefaultButtonStyle}">
                            <StackPanel Orientation="Horizontal">
                                <TextBlock
                                    Margin="0,3,8,0"
                                    FontFamily="{StaticResource SymbolThemeFontFamily}"
                                    Foreground="{DynamicResource PrimaryForegroundBrush}"
                                    Text="&#xE746;" />
                                <TextBlock Foreground="{DynamicResource PrimaryForegroundBrush}" Text="{x:Static props:Resources.Merge_zones}" />
                            </StackPanel>
                        </Button>
                    </Border>
                </StackPanel>
            </Canvas>
        </Grid>
    </Viewbox>
</UserControl>