TreeCanvasView.xaml 1.1 KB

12345678910111213141516171819202122232425262728
  1. <UserControl
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:ed="http://schemas.microsoft.com/expression/2010/drawing"
  7. xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
  8. xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
  9. x:Class="TreeCanvas.TreeCanvasView"
  10. mc:Ignorable="d"
  11. d:DesignHeight="600" d:DesignWidth="800">
  12. <UserControl.CommandBindings>
  13. <CommandBinding Command="ApplicationCommands.New" Executed="NewNode_Executed" />
  14. </UserControl.CommandBindings>
  15. <UserControl.ContextMenu>
  16. <ContextMenu Name="cm">
  17. <MenuItem Header="New Node" Command="ApplicationCommands.New"
  18. CommandTarget="{Binding Path=PlacementTarget, RelativeSource={RelativeSource AncestorType=ContextMenu}}" />
  19. </ContextMenu>
  20. </UserControl.ContextMenu>
  21. <Canvas Background="Transparent" Name="canvasTree">
  22. </Canvas>
  23. </UserControl>