Smrf.NodeXL.Visualization.Wpf.NodeXLControl.CheckForVertexDragOnMouseMove C# (CSharp) Method

CheckForVertexDragOnMouseMove() protected method

protected CheckForVertexDragOnMouseMove ( System.Windows.Input.MouseEventArgs oMouseEventArgs ) : void
oMouseEventArgs System.Windows.Input.MouseEventArgs
return void
    CheckForVertexDragOnMouseMove
    (
        MouseEventArgs oMouseEventArgs
    )
    {
        Debug.Assert(oMouseEventArgs != null);
        AssertValid();
        Point oMouseLocation;

        if ( !DragIsInProgress(m_oVerticesBeingDragged, oMouseEventArgs,
            new MouseButtonState[]{oMouseEventArgs.LeftButton},
            out oMouseLocation) )
        {
            return;
        }

        // Remove from the top of the graph any dragged vertices drawn during
        // the previous MouseMove event.

        RemoveVisualFromTopOfGraph(m_oVerticesBeingDragged);

        // Create a new Visual to represent the dragged vertices and add it on
        // top of the graph.

        m_oVerticesBeingDragged.CreateVisual(oMouseLocation,
            GetBackgroundContrastColor(), m_oGraphDrawer.VertexDrawer);

        m_oGraphDrawer.AddVisualOnTopOfGraph(m_oVerticesBeingDragged.Visual);
    }
NodeXLControl