<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 CornerRadius="2"
                            Background="{DynamicResource PrimaryBackgroundBrush}">
                        
                        <Button Width="134"
                                Height="36"
                                Margin="0"
                                Style="{StaticResource DefaultButtonStyle}"
                                Click="MergeClick">
                            <StackPanel Orientation="Horizontal">
                                <TextBlock Text="&#xE746;"
                                           FontFamily="Segoe MDL2 Assets"
                                           Foreground="{DynamicResource PrimaryForegroundBrush}"
                                           Margin="0,3,8,0" />
                                <TextBlock Text="{x:Static props:Resources.Merge_zones}"
                                           Foreground="{DynamicResource PrimaryForegroundBrush}"/>
                            </StackPanel>
                        </Button>
                    </Border>
                </StackPanel>
            </Canvas>
        </Grid>
    </Viewbox>
</UserControl>