<UserControl x:Class="Ink_Canvas.Controls.ToolMenuButton"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:ikw="http://schemas.inkore.net/lib/ui/wpf"
             mc:Ignorable="d">
    <Border x:Name="ButtonBorder"
            CornerRadius="4"
            Background="Transparent" d:Background="Red">
        <ikw:SimpleStackPanel x:Name="ButtonPanel"
                              MouseDown="ButtonPanel_MouseDown"
                              MouseLeave="ButtonPanel_MouseLeave"
                              MouseUp="ButtonPanel_MouseUp"
                              Background="Transparent"
                              Orientation="Vertical"
                              HorizontalAlignment="Center"
                              Height="60" Width="48">
            <Image x:Name="ButtonImage"
                   Margin="9,9,9,0"
                   Height="30" Width="30"
                   RenderOptions.BitmapScalingMode="HighQuality">
                <Image.Source>
                    <DrawingImage>
                        <DrawingImage.Drawing>
                            <DrawingGroup ClipGeometry="M0,0 V24 H24 V0 H0 Z">
                                <GeometryDrawing x:Name="IconGeometryInternal"
                                                 Brush="{DynamicResource IconForeground}" />
                            </DrawingGroup>
                        </DrawingImage.Drawing>
                    </DrawingImage>
                </Image.Source>
            </Image>
            <Label x:Name="LabelControl"
                   FontSize="14" d:Content="田田田"
                   HorizontalAlignment="Center"
                   Foreground="{DynamicResource FloatBarForeground}" />
        </ikw:SimpleStackPanel>
    </Border>
</UserControl>