Northwoods.GoSilverlight 1.2.2 Assembly
DragZoomingTool Property
See Also  Send Feedback
Northwoods.GoXam Namespace > Diagram Class : DragZoomingTool Property

Gets or sets the non-standard mouse-move tool for manual zooming.

Syntax

Visual Basic (Declaration) 
<CategoryAttribute("Tools")>
Public Property DragZoomingTool As DragZoomingTool
C# 
[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

© 2010 All Rights Reserved.