Northwoods.GoSilverlight 1.3.5 Assembly
ToolManager Class
Members  See Also  Send Feedback
Northwoods.GoXam.Tool Namespace : ToolManager Class

This special IDiagramTool is responsible for managing all of the Northwoods.GoXam.Diagram's mode-less tools.

Syntax

Visual Basic (Declaration) 
Public Class ToolManager 
   Inherits DiagramTool
   Implements IDiagramTool 
C# 
public class ToolManager : DiagramTool, IDiagramTool  

Remarks

Mode-less tools are tools that are present in one of the following lists: Northwoods.GoXam.Diagram.MouseDownTools, Northwoods.GoXam.Diagram.MouseMoveTools, or Northwoods.GoXam.Diagram.MouseUpTools. This ToolManager tool is normally the Northwoods.GoXam.Diagram.DefaultTool, so it is also often the Northwoods.GoXam.Diagram.CurrentTool.

When this tool is running as the current tool, it handles mouse-down, mouse-move, and mouse-up events. For each event it iterates over each of the tools in the corresponding list, calling its IDiagramTool.CanStart predicate. If that predicate returns true, it starts that tool by making it the diagram's current tool. It then activates the tool and passes on the event to the tool by calling the corresponding method (either IDiagramTool.DoMouseDown, IDiagramTool.DoMouseMove, or IDiagramTool.DoMouseUp).

Because this tool is typically the one running as the diagram's current tool when the user isn't "doing" anything, this tool can also handle other events, such as mouse wheel events. In Silverlight it handles key down events. (WPF handles the standard keyboard events for diagrams via command bindings.)

This tool does not utilize any Northwoods.GoXam.Adornments or tool handles.

This tool does not edit the model.

Inheritance Hierarchy

System.Object
   System.Windows.DependencyObject
      System.Windows.UIElement
         System.Windows.FrameworkElement
            Northwoods.GoXam.Tool.DiagramTool
               Northwoods.GoXam.Tool.ToolManager

Requirements

See Also

© 2012 All Rights Reserved.