RotatingTool
is used to interactively change the angle of an element.
Visual Basic (Declaration) | |
---|---|
Public Class RotatingTool Inherits DiagramTool Implements IDiagramTool |
C# | |
---|---|
public class RotatingTool : DiagramTool, IDiagramTool |
This tool allows the user to rotate the Northwoods.GoXam.Part.SelectionElement of the selected part. Normally this works with Northwoods.GoXam.Nodes; it does not make sense for Northwoods.GoXam.Groups and Northwoods.GoXam.Links.
You can limit the permitted angles by setting SnapAngleMultiple and SnapAngleEpsilon. For example, if you want to permit only angles that are multiples of 90 degrees, set SnapAngleMultiple to 90 and SnapAngleEpsilon to 45.
This tool makes use of an Northwoods.GoXam.Adornment, shown when the AdornedNode is selected, that includes a rotate handle.
This tool conducts a model edit (DiagramTool.StartTransaction and DiagramTool.StopTransaction) while the tool is DiagramTool.Active.
System.Object
System.Windows.DependencyObject
System.Windows.UIElement
System.Windows.FrameworkElement
Northwoods.GoXam.Tool.DiagramTool
Northwoods.GoXam.Tool.RotatingTool