Visual Basic (Declaration) | |
---|---|
<CategoryAttribute("Tools")> Public Property PanningTool As PanningTool |
C# | |
---|---|
[CategoryAttribute("Tools")] public PanningTool PanningTool {get; set;} |
Property Value
The default value is an instance of PanningTool.Normally the DragSelectingTool takes precedence, because both tools operate on a left-button-mouse-down in the background followed by a mouse-drag. But DragSelectingTool precedes this PanningTool in the list of MouseMoveTools, so if it is applicable, it is always chosen first.
To enable this mode-less panning tool, you can remove the drag-selecting tool or you can disable that tool by disallowing selection. Remove the tool in WPF XAML by:
<go:Diagram ... DragSelectingTool="{x:Null}" > . . . </go:Diagram>or remove it in code by:
myDiagram.DragSelectingTool = null;You can disable user selection by setting the AllowSelect property to false.