Represents a mouse drag that is translating the graph via a TranslateTransform.
Create an instance of this class when the graph is clicked while NodeXLControl.MouseMode is set to . When the mouse is moved, call to get the distances to translate the graph.
Inheritance: MouseDrag
Ejemplo n.º 1
0
    StartTranslationDrag
    (
        Point oMouseLocation
    )
    {
        AssertValid();

        // Save the mouse location for use within the MouseMove event.

        TranslateTransform oTranslateTransform =
            this.TranslateTransformForRender;

        m_oTranslationBeingDragged = new DraggedTranslation(oMouseLocation,
            this.PointToScreen(oMouseLocation), oTranslateTransform.X,
            oTranslateTransform.Y);

        this.Cursor = Cursors.Hand;
        Mouse.Capture(this);
    }