<Window x:Class="NEIntelligentControl2.Windows.BoostStation.ShapeAddWindow"
        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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:NEIntelligentControl2.Windows"
        xmlns:svg="clr-namespace:SVGViewer;assembly=SVGViewer"
        mc:Ignorable="d"
        Title="添加" Height="675" Width="1200" WindowStartupLocation="CenterScreen">


    <Window.Resources>
        <RoutedCommand x:Key="redo"/>
        <RoutedCommand x:Key="undo"/>
    </Window.Resources>

    <Window.InputBindings>
        <KeyBinding Gesture="Ctrl+Z" Command="{StaticResource undo}"/>
        <KeyBinding Gesture="Ctrl+Y" Command="{StaticResource redo}"/>
    </Window.InputBindings>

    <Window.CommandBindings>
        <CommandBinding Command="{StaticResource undo}" Executed="Undo_CommandBinding_Executed"/>
        <CommandBinding Command="{StaticResource redo}" Executed="Redo_CommandBinding_Executed"/>
    </Window.CommandBindings>

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>

        <svg:EditSVGView x:Name="_esv"/>

        <Grid Grid.Row="1" Background="WhiteSmoke">
            <StackPanel Margin="10" Orientation="Horizontal" HorizontalAlignment="Right">
                <Button Content="确定" Margin="5" Padding="12,3" Click="Button_Click" Tag="ok"/>
                <Button Content="取消" Margin="5" Padding="12,3" Click="Button_Click" Tag="cancel"/>
                <Button Content="导出" Margin="5" Padding="12,3" Click="Button_Click" Tag="output"/>
            </StackPanel>
        </Grid>
    </Grid>
</Window>
