コード例 #1
0
        /// <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;
        }
コード例 #2
0
ファイル: NodeGraph.xaml.cs プロジェクト: Nielk1/NekoPuppet
 private void networkControl_NodeDoubleClick(object sender, NodeDoubleClickEventArgs e)
 {
     this.ViewModel.NodeDoubleClick(e.nodes);
 }
コード例 #3
0
        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;
            }
        }