GoXam for WPF v3
ToolManager Class
Members 
Northwoods.GoXam.Tool Namespace : ToolManager Class
This special IDiagramTool is responsible for managing all of the Northwoods.GoXam.Diagram's mode-less tools.
Object Model
ToolManager ClassDiagram Class
Syntax
[DesignTimeVisible(false)]
[StyleTypedProperty(Property="FocusVisualStyle", StyleTargetType=System.Windows.Controls.Control)]
[XmlLangProperty("Language")]
[UsableDuringInitialization(true)]
[RuntimeNameProperty("Name")]
[UidProperty("Uid")]
[TypeDescriptionProvider(MS.Internal.ComponentModel.DependencyObjectProvider)]
[NameScopeProperty("NameScope", System.Windows.NameScope)]
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. (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.Threading.DispatcherObject
      System.Windows.DependencyObject
         System.Windows.Media.Visual
            System.Windows.UIElement
               System.Windows.FrameworkElement
                  Northwoods.GoXam.Tool.DiagramTool
                     Northwoods.GoXam.Tool.ToolManager

See Also

Reference

ToolManager Members
Northwoods.GoXam.Tool Namespace