public NodeGraph(NodeGraphContext context) { InitializeComponent(); context.propertyChanged += Context_propertyChanged; this.context = context; this.MouseDown += NodeGraph_MouseDown; this.DragEnter += Canvas_DragEnter; this.Drop += NodeGraph_Drop; this.AllowDrop = true; this.PreviewKeyDown += OnPreviewKeyDown; }
public NodeChest(NodeGraphContext context) { InitializeComponent(); context.propertyChanged += Context_propertyChanged; this.context = context; }