PanningTool

StockSharp.Xaml.Diagram.GXDiagram.Tool

The PanningTool supports manual panning, where the user can shift the DiagramPanel's Position by dragging the mouse.

Inherits: DiagramTool

Methods

CanStart
public override bool CanStart()
result = panningTool.CanStart()

This tool can run when the diagram allows scrolling and the mouse has been dragged far enough away from the mouse-down point to avoid being a click.

DoActivate
public override void DoActivate()
panningTool.DoActivate()

Establish a scroll cursor and remember the OriginalPosition of the DiagramPanel.

DoCancel
public override void DoCancel()
panningTool.DoCancel()

Reset the DiagramPanel's Position and stop this tool.

DoDeactivate
public override void DoDeactivate()
panningTool.DoDeactivate()

Restore the diagram's cursor.

DoMouseMove
public override void DoMouseMove()
panningTool.DoMouseMove()

Modify the Diagram's Panel's Position according to how much the mouse has moved.

DoMouseUp
public override void DoMouseUp()
panningTool.DoMouseUp()

Finish scrolling the diagram.

DoStart
public override void DoStart()
panningTool.DoStart()

Capture the mouse when starting this tool.

DoStop
public override void DoStop()
panningTool.DoStop()

Release the mouse capture when stopping this tool.