Northwoods.GoWPF 2.2.4 Assembly
DragZoomingTool Property

Gets or sets the non-standard mouse-move tool for manual zooming.
Syntax
<CategoryAttribute("Tools")>
Public Property DragZoomingTool As DragZoomingTool
[CategoryAttribute("Tools")]
public DragZoomingTool DragZoomingTool {get; set;}

Property Value

The default value is null.
Remarks

Because this property is normally null, there is no standard mode-less drag-zooming tool. You can install this tool by creating an instance of it and setting that diagram property. However, although it can start, the DragSelectingTool and the PanningTool are two other background-mouse-drag mode-less tools that are normally present and earlier in the MouseMoveTools and thus will take precedence over this tool.

To make this mode-less tool effective, you can remove the other two background mouse-dragging tools and install the Northwoods.GoXam.Tool.DragZoomingTool in XAML: <go:Diagram ... DragSelectingTool="{x:Null}" PanningTool="{x:Null}" > <go:Diagram.DragZoomingTool> <go:DragZoomingTool /> </go:Diagram.DragZoomingTool> </go:Diagram> You could also do the same in code: myDiagram.DragSelectingTool = null; myDiagram.PanningTool = null; myDiagram.DragZoomingTool = new DragZoomingTool();

Requirements
See Also

Reference

Diagram Class
Diagram Members

 

 


© Northwoods Software 2017. All Rights Reserved.

Send Feedback