/// <summary> /// Event raised when the user starts to drag a node. /// </summary> private void NodeItem_DoubleClick(object source, NodeDoubleClickEventArgs e) { e.Handled = true; var eventArgs = new NodeDoubleClickEventArgs(NodeDoubleClickEvent, this, this.SelectedNodes); RaiseEvent(eventArgs); if (cachedSelectedNodeItems != null) { cachedSelectedNodeItems = null; } this.IsDragging = false; this.IsNotDragging = true; this.IsDraggingNode = false; this.IsNotDraggingNode = true; this.dragWasDoubleclick = true; }
private void networkControl_NodeDoubleClick(object sender, NodeDoubleClickEventArgs e) { this.ViewModel.NodeDoubleClick(e.nodes); }
protected override void OnMouseDoubleClick(MouseButtonEventArgs e) { base.OnMouseDoubleClick(e); if (!isDragging && isLeftMouseDown && this.ParentNetworkView.EnableNodeDragging) { NodeDoubleClickEventArgs eventArgs = new NodeDoubleClickEventArgs(NodeDoubleClickEvent, this, new NodeItem[] { this }); RaiseEvent(eventArgs); e.Handled = true; } }