<UserControl x:Class="MainShell.Recipe.View.RecipeButtonGroupView"
             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:local="clr-namespace:MainShell.Recipe.View"
             mc:Ignorable="d" 
             >
    
        <Border Background="#EBEEF3">
        <StackPanel>
            <UniformGrid Margin="2" Columns="2" Rows="4">
                <Button Command="{Binding RecipeButtonGroupViewModel.CreateNewCmd}" CommandParameter="{Binding}" ToolTip="{DynamicResource New}" Style="{StaticResource iconButton}">
                    <StackPanel HorizontalAlignment="Left" Orientation="Horizontal">
                        <TextBlock Text="&#xe600;" Foreground="Blue" FontFamily="{StaticResource ttfFont}" VerticalAlignment="Center" />
                        <TextBlock Margin="4,0" Text="{DynamicResource New}" />
                    </StackPanel>
                </Button>
                <Button Command="{Binding RecipeButtonGroupViewModel.ApplyCmd}" CommandParameter="{Binding}" ToolTip="{DynamicResource Apply}" Style="{StaticResource iconButton}">
                    <StackPanel HorizontalAlignment="Left" Orientation="Horizontal">
                        <TextBlock Text="&#xebdf;" Foreground="Blue" FontFamily="{StaticResource ttfFont}" VerticalAlignment="Center" />
                        <TextBlock Margin="4,0" Text="{DynamicResource Apply}" />
                    </StackPanel>
                </Button>
                <Button Command="{Binding RecipeButtonGroupViewModel.ReNameCmd}" CommandParameter="{Binding }" ToolTip="{DynamicResource ReName}" Style="{StaticResource iconButton}">
                    <StackPanel HorizontalAlignment="Left" Orientation="Horizontal">
                        <TextBlock Text="&#xe618;" Foreground="#7CEAB8" FontFamily="{StaticResource ttfFont}" VerticalAlignment="Center" />
                        <TextBlock Margin="4,0" Text="{DynamicResource ReName}" />
                    </StackPanel>
                </Button>
                <Button Command="{Binding RecipeButtonGroupViewModel.DeleteCmd}" CommandParameter="{Binding}" ToolTip="{DynamicResource Delete}" Style="{StaticResource iconButton}">
                    <StackPanel HorizontalAlignment="Left" Orientation="Horizontal">
                        <TextBlock Text="&#xe630;" Foreground="Red" FontFamily="{StaticResource ttfFont}" VerticalAlignment="Center" />
                        <TextBlock Margin="4,0" Text="{DynamicResource Delete}" />
                    </StackPanel>
                </Button>
                <Button Command="{Binding RecipeButtonGroupViewModel.CopyCmd}" CommandParameter="{Binding }" ToolTip="{DynamicResource Copy}" Style="{StaticResource iconButton}" IsEnabled="{Binding CanCopyRecipe}">
                    <StackPanel HorizontalAlignment="Left" Orientation="Horizontal">
                        <TextBlock Text="&#xe67e;" Foreground="Blue" FontFamily="{StaticResource ttfFont}" VerticalAlignment="Center" />
                        <TextBlock Margin="4,0" Text="{DynamicResource Copy}" />
                    </StackPanel>
                </Button>
                <Button Command="{Binding RecipeButtonGroupViewModel.ClearCmd}" CommandParameter="{Binding }" ToolTip="{DynamicResource Clear}" Style="{StaticResource iconButton}">
                    <StackPanel HorizontalAlignment="Left" Orientation="Horizontal">
                        <TextBlock Text="&#xe60c;" Foreground="Red" FontFamily="{StaticResource ttfFont}" VerticalAlignment="Center" />
                        <TextBlock Margin="4,0" Text="{DynamicResource Clear}" />
                    </StackPanel>
                </Button>
                <Button Command="{Binding RecipeButtonGroupViewModel.ImportCmd}" CommandParameter="{Binding }" ToolTip="{DynamicResource Import}" Style="{StaticResource iconButton}" IsEnabled="{Binding CanImportRecipe}">
                    <StackPanel HorizontalAlignment="Left" Orientation="Horizontal">
                        <TextBlock Text="&#xe664;" Foreground="#5462E6" FontFamily="{StaticResource ttfFont}" VerticalAlignment="Center" />
                        <TextBlock Margin="4,0" Text="{DynamicResource Import}" />
                    </StackPanel>
                </Button>
                <Button Command="{Binding RecipeButtonGroupViewModel.ExportCmd}" CommandParameter="{Binding }" ToolTip="{DynamicResource Export}" Style="{StaticResource iconButton}" IsEnabled="{Binding CanExportRecipe}">
                    <StackPanel HorizontalAlignment="Left" Orientation="Horizontal">
                        <TextBlock Text="&#xe667;" Foreground="#5462E6" FontFamily="{StaticResource ttfFont}" VerticalAlignment="Center" />
                        <TextBlock Margin="4,0" Text="{DynamicResource Export}" />
                    </StackPanel>
                </Button>
            </UniformGrid>
            <Button Command="{Binding RecipeButtonGroupViewModel.SaveCmd}" CommandParameter="{Binding }" Width="140" ToolTip="{DynamicResource Save}" Style="{StaticResource iconButton}">
                <StackPanel HorizontalAlignment="Left" Orientation="Horizontal">
                    <TextBlock Text="&#xec09;" Foreground="#007BFF" FontSize="16" FontFamily="{StaticResource ttfFont}" VerticalAlignment="Center" />
                    <TextBlock Margin="4,0" Text="{DynamicResource Save}" />
                </StackPanel>
            </Button>
        </StackPanel>
    </Border>
    
</UserControl>
