<UserControl x:Class="XamlViewer.Views.ToolbarControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:prism="http://prismlibrary.com/"
             xmlns:themes="clr-namespace:XamlTheme;assembly=XamlTheme" 
             xmlns:controls="clr-namespace:XamlTheme.Controls;assembly=XamlTheme" 
             prism:ViewModelLocator.AutoWireViewModel="True">

    <StackPanel Orientation="Horizontal">
        <Button Width="30" ToolTip="New (Ctrl+N)" 
                Command="{Binding ApplicationCommands.NewCommand}"
                Style="{StaticResource {x:Static themes:ResourceKeys.ToolbarButtonStyleKey}}">
            <controls:DrawingIcon>
                <controls:DrawingIcon.Drawing>
                    <DrawingGroup>
                        <GeometryDrawing Brush="#005198" Geometry="M0,0 H10V1 H11V2 H12V3 H13V4 H14V16 H0V0 M1,1 H9V5 H13V15 H1" />
                        <GeometryDrawing Brush="#FF5400" Geometry="M6,6 H7V13 H6 M3,9 H6V10 H3 M7,9 H10V10 H7" />
                    </DrawingGroup>
                </controls:DrawingIcon.Drawing>
                <controls:DrawingIcon.HDPIDrawing>
                    <DrawingGroup>
                        <GeometryDrawing Brush="#005198" Geometry="M0,0 H10 L14,4 V16 H0V0 M1,1 H9V5 H13V15 H1" />
                        <GeometryDrawing Brush="#FF5400" Geometry="M6,6 H7V13 H6 M3,9 H6V10 H3 M7,9 H10V10 H7" />
                    </DrawingGroup>
                </controls:DrawingIcon.HDPIDrawing>
            </controls:DrawingIcon>
        </Button> 
        <Button Width="30" ToolTip="Open (Ctrl+O)"
                Command="{Binding ApplicationCommands.OpenCommand}"
                Style="{StaticResource {x:Static themes:ResourceKeys.ToolbarButtonStyleKey}}">
                <!--
            <controls:DrawingIcon>
                <controls:DrawingIcon.Drawing>
                    <DrawingGroup>
                        <GeometryDrawing Brush="#005198" Geometry="M9,1 H16V16 H3V15 H2V13 H1V11 H0V7 H1V8 H2V9 H5V8 H6V7 H13V11 H14V14 H15V2 H9 M10,3 H13V4 H10" />
                        <GeometryDrawing Brush="#FF5400" Geometry="M4,0 H6V1 H7V2 H8V4 H7V5 H6V6 H4V5 H5V4 H2V6 H3V7 H4V8 H2V7 H1V6 H0V3 H1V2 H5V1 H4" />
                    </DrawingGroup>
                </controls:DrawingIcon.Drawing>
                <controls:DrawingIcon.HDPIDrawing>
                    <DrawingGroup>
                        <GeometryDrawing Brush="#005198" Geometry="M9,1 H16V16 H3V15 L0,9 H5 L6,7 H11 L14,14 H15V2 H9 M10,3 H13V4 H10" />
                        <GeometryDrawing Brush="#FF5400" Geometry="M3.965131,0 L7.965131,3 3.965131,6 3.965131,4 C0.59520723,4.1666667 2.965131,6.45 3.965131,8 2.6640172,7.6579617 1.1458614,6.125 0.81048457,5.7875 0.19586141,4.925 -1.7241539,2.2 3.965131,2" />
                    </DrawingGroup>
                </controls:DrawingIcon.HDPIDrawing>
            </controls:DrawingIcon>
            -->
            <controls:DrawingIcon>
                <controls:DrawingIcon.Drawing>
                    <DrawingGroup>
                        <GeometryDrawing Brush="#005198" Geometry="M7,3 L8,3 8,4 7,4 z M2,3 L5,3 5,4 2,4 z M6,2 L7,2 7,3 6,3 z M0,1 L6,1 6,2 1,2 1,5 11,5 11,6 1,6 1,15 15,15 15,6 14,6 14,5 16,5 16,16 0,16 z" />
                        <GeometryDrawing Brush="#FF5400" Geometry="M12,0 L13,0 13,1 14,1 14,2 15,2 15,3 16,3 16,4 13,4 13,11 7,11 7,10 12,10 12,4 9,4 9,3 10,3 10,2 11,2 11,1 12,1 z" />
                    </DrawingGroup>
                </controls:DrawingIcon.Drawing>
                <controls:DrawingIcon.HDPIDrawing>
                    <DrawingGroup>
                        <GeometryDrawing Brush="#005198" Geometry="M2,3 L5,3 5,4 2,4 z M5.9673467,1 L6,1 8.328125,3.2290835 7.587875,4 5.5393248,2 1,2 1,5 11,5 11,6 1,6 1,15 15,15 15,6 14,6 14,5 16,5 16,16 0,16 0,1 z" />
                        <GeometryDrawing Brush="#FF5400" Geometry="M12.5,0 L16,4 13,4 13,11 7,11 7,10 12,10 12,4 9,4" />
                    </DrawingGroup>
                </controls:DrawingIcon.HDPIDrawing>
            </controls:DrawingIcon>
        </Button>
        <Button Width="30" ToolTip="Save (Ctrl+S)"
                Command="{Binding ApplicationCommands.SaveCommand}"
                Style="{StaticResource {x:Static themes:ResourceKeys.ToolbarButtonStyleKey}}">
            <!--
            <controls:DrawingIcon>
                <controls:DrawingIcon.Drawing>
                    <GeometryDrawing Brush="#812DAB" Geometry="M0,0 H3V8 H13V1 H14V2 H15V3 H16V16 H0 M8,0 H11V6 H8" />
                </controls:DrawingIcon.Drawing>
                <controls:DrawingIcon.HDPIDrawing>
                    <GeometryDrawing Brush="#812DAB" Geometry="M0,0 H3V8 H13V1 L16,3 V16 H0 M8,0 H11V6 H8" />
                </controls:DrawingIcon.HDPIDrawing>
            </controls:DrawingIcon>
            -->
            <controls:DrawingIcon>
                <controls:DrawingIcon.Drawing>
                    <DrawingGroup>
                        <GeometryDrawing Brush="#005198" Geometry="M14,2 L15,2 15,3 14,3 z M0,0 L8,0 8,1 4,1 4,5 12,5 12,1 10,1 10,0 13,0 13,1 14,1 14,2 13,2 13,6 3,6 3,1 1,1 1,15 15,15 15,3 16,3 16,16 0,16 z" />
                        <GeometryDrawing Brush="#FF5400" Geometry="M3,12 L8,12 8,13 3,13 z M3,10 L13,10 13,11 3,11 z M3,8 L13,8 13,9 3,9 z M8,0 L10,0 10,4 8,4 z" />
                    </DrawingGroup>
                </controls:DrawingIcon.Drawing>
                <controls:DrawingIcon.HDPIDrawing>
                    <DrawingGroup>
                        <GeometryDrawing Brush="#005198" Geometry="M1,1 L1,15 15,15 15,3.5 13,1.5 13,6 3,6 3,1 z M0,0 L8,0 8,1 4,1 4,5 12,5 12,1 10,1 10,0 13,0 16,3 16,16 0,16 z" />
                        <GeometryDrawing Brush="#FF5400" Geometry="M3,12 L8,12 8,13 3,13 z M3,10 L13,10 13,11 3,11 z M3,8 L13,8 13,9 3,9 z M8,0 L10,0 10,4 8,4 z" />
                    </DrawingGroup>
                </controls:DrawingIcon.HDPIDrawing>
            </controls:DrawingIcon>
        </Button>
        <Button Width="30" ToolTip="Save All (Ctrl+Shift+S)"
                Command="{Binding ApplicationCommands.SaveAllCommand}"
                Style="{StaticResource {x:Static themes:ResourceKeys.ToolbarButtonStyleKey}}">
            <!--
            <controls:DrawingIcon>
                <controls:DrawingIcon.Drawing>
                    <GeometryDrawing Brush="#812DAB" Geometry="M0,1 V16 H15V14 H2V1 M3,0 H5V6 H14V1 H15V2 H16V13 H3 M10,0 H12V4 H10Z" />
                </controls:DrawingIcon.Drawing>
                <controls:DrawingIcon.HDPIDrawing>
                    <GeometryDrawing Brush="#812DAB" Geometry="M0,1 V16 H15V14 H2V1 M3,0 H5V6 H14V1 L16,2 V13 H3 M10,0 H12V4 H10Z" />
                </controls:DrawingIcon.HDPIDrawing>
            </controls:DrawingIcon>
            -->
            <controls:DrawingIcon>
                <controls:DrawingIcon.Drawing>
                    <DrawingGroup>
                        <GeometryDrawing Brush="#005198" Geometry="M0,2 L1,2 1,15 14,15 14,16 0,16 z M14,1 L15,1 15,2 14,2 z M2,0 L9,0 9,1 6,1 6,5 12,5 12,1 11,1 11,0 14,0 14,1 13,1 13,6 5,6 5,1 3,1 3,13 15,13 15,2 16,2 16,14 2,14 z" />
                        <GeometryDrawing Brush="#FF5400" Geometry="M5,10 L10,10 10,11 5,11 z M5,8 L13,8 13,9 5,9 z M9,0 L11,0 11,4 9,4 z" />
                    </DrawingGroup>
                </controls:DrawingIcon.Drawing>
                <controls:DrawingIcon.HDPIDrawing>
                    <DrawingGroup>
                        <GeometryDrawing Brush="#005198" Geometry="M0,2 L1,2 1,15 14,15 14,16 0,16 z M3,1 L3,13 15,13 15,2.4 13.6,1 13,1 13,6 5,6 5,1 z M2,0 L9,0 9,1 6,1 6,5 12,5 12,1 11,1 11,0 14,0 16,2 16,14 2,14 z" />
                        <GeometryDrawing Brush="#FF5400" Geometry="M5,10 L10,10 10,11 5,11 z M5,8 L13,8 13,9 5,9 z M9,0 L11,0 11,4 9,4 z" />
                    </DrawingGroup>
                </controls:DrawingIcon.HDPIDrawing>
            </controls:DrawingIcon>
        </Button>

        <Separator Style="{StaticResource {x:Static themes:ResourceKeys.VerSeparatorStyleKey}}" Margin="3,5"/>

        <Button Width="30" ToolTip="Undo (Ctrl+Z)"
                Command="{Binding ApplicationCommands.UndoCommand}"
                Style="{StaticResource {x:Static themes:ResourceKeys.ToolbarButtonStyleKey}}">
            <controls:DrawingIcon>
                <controls:DrawingIcon.Drawing>
                    <GeometryDrawing Brush="#005198" Geometry="M0,3 H1V2 H2V1 H3V0 H4V3 H10V4 H11V5 H12V6 H13V11 H12V12 H11V13 H10V14 H5V13 H10V12 H11V11 H12V6 H11V5 H10V4 H4V7 H3V6 H2V5 H1V4 H0z" />
                </controls:DrawingIcon.Drawing>
                <controls:DrawingIcon.HDPIDrawing>
                    <GeometryDrawing Brush="#005198" Geometry="M4,0 L4,3 6.6,3 C10,3 13,5.34 13,8.42 13,11.5 10.12,14 6.6,14 L5,14 5,13 6.58,13 C9.3,13 12,10.75 12,8.42 12,6 9.3,4 6.58,4 L4,4 4,7.2 0,3.5 z" />
                </controls:DrawingIcon.HDPIDrawing>
            </controls:DrawingIcon>
        </Button>
        <Button Width="30" ToolTip="Redo (Ctrl+Y)"
                Command="{Binding ApplicationCommands.RedoCommand}"
                Style="{StaticResource {x:Static themes:ResourceKeys.ToolbarButtonStyleKey}}">
            <Button.LayoutTransform>
                <ScaleTransform ScaleX="-1"/>
            </Button.LayoutTransform>
            <controls:DrawingIcon>
                <controls:DrawingIcon.Drawing>
                    <GeometryDrawing Brush="#005198" Geometry="M0,3 H1V2 H2V1 H3V0 H4V3 H10V4 H11V5 H12V6 H13V11 H12V12 H11V13 H10V14 H5V13 H10V12 H11V11 H12V6 H11V5 H10V4 H4V7 H3V6 H2V5 H1V4 H0z" />
                </controls:DrawingIcon.Drawing>
                <controls:DrawingIcon.HDPIDrawing>
                    <GeometryDrawing Brush="#005198" Geometry="M4,0 L4,3 6.6,3 C10,3 13,5.34 13,8.42 13,11.5 10.12,14 6.6,14 L5,14 5,13 6.58,13 C9.3,13 12,10.75 12,8.42 12,6 9.3,4 6.58,4 L4,4 4,7.2 0,3.5 z" />
                </controls:DrawingIcon.HDPIDrawing>
            </controls:DrawingIcon>
        </Button>

        <Separator Style="{StaticResource {x:Static themes:ResourceKeys.VerSeparatorStyleKey}}" Margin="3,5"/>

        <Button Width="30" ToolTip="Compile (F5)"
                Command="{Binding ApplicationCommands.CompileCommand}"
                Style="{StaticResource {x:Static themes:ResourceKeys.ToolbarButtonStyleKey}}">
            <Path Fill="#1CC220" Data="M0,0 L10,7 0,14 z"/>
        </Button>
    </StackPanel>
</UserControl>
