ShapeAddWindow.xaml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <Window x:Class="NEIntelligentControl2.Windows.BoostStation.ShapeAddWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:NEIntelligentControl2.Windows"
  7. xmlns:svg="clr-namespace:SVGViewer;assembly=SVGViewer"
  8. mc:Ignorable="d"
  9. Title="添加" Height="675" Width="1200" WindowStartupLocation="CenterScreen">
  10. <Window.Resources>
  11. <RoutedCommand x:Key="redo"/>
  12. <RoutedCommand x:Key="undo"/>
  13. </Window.Resources>
  14. <Window.InputBindings>
  15. <KeyBinding Gesture="Ctrl+Z" Command="{StaticResource undo}"/>
  16. <KeyBinding Gesture="Ctrl+Y" Command="{StaticResource redo}"/>
  17. </Window.InputBindings>
  18. <Window.CommandBindings>
  19. <CommandBinding Command="{StaticResource undo}" Executed="Undo_CommandBinding_Executed"/>
  20. <CommandBinding Command="{StaticResource redo}" Executed="Redo_CommandBinding_Executed"/>
  21. </Window.CommandBindings>
  22. <Grid>
  23. <Grid.RowDefinitions>
  24. <RowDefinition/>
  25. <RowDefinition Height="Auto"/>
  26. </Grid.RowDefinitions>
  27. <svg:EditSVGView x:Name="_esv"/>
  28. <Grid Grid.Row="1" Background="WhiteSmoke">
  29. <StackPanel Margin="10" Orientation="Horizontal" HorizontalAlignment="Right">
  30. <Button Content="确定" Margin="5" Padding="12,3" Click="Button_Click" Tag="ok"/>
  31. <Button Content="取消" Margin="5" Padding="12,3" Click="Button_Click" Tag="cancel"/>
  32. <Button Content="导出" Margin="5" Padding="12,3" Click="Button_Click" Tag="output"/>
  33. </StackPanel>
  34. </Grid>
  35. </Grid>
  36. </Window>