Enum DiagramEventName
- Namespace
- Northwoods.Go
- Assembly
- Northwoods.GoDiagram.Avalonia.dll
This enumeration specifies the various names for DiagramEvents.
public enum DiagramEventName
Fields
AnimationFinished = 3A DefaultAnimation just completed.
Do not modify the Diagram or its Model in the event listener.
AnimationStarting = 2A DefaultAnimation is about to start.
Do not modify the Diagram or its Model in the event listener.
BackgroundContextClicked = 6A context-click that was not on any Part.
If you make any changes, start and commit your own transaction.
BackgroundDoubleClicked = 5A double-click that was not on any Part.
If you make any changes, start and commit your own transaction.
BackgroundSingleClicked = 4A click that was not on any Part.
If you make any changes, start and commit your own transaction.
ChangedSelection = 8An operation has just changed the Selection collection.
The Subject is the Selection collection. Do not make any changes to the selection or the diagram in the event listener. Note that just setting IsSelected will not raise this event, but tools and commands will.
ChangingSelection = 7An operation is about to change the Selection collection.
The Subject is the Selection collection. Do not make any changes to the selection or the diagram in the event listener. Note that just setting IsSelected will not raise this event, but tools and commands will.
ClipboardChanged = 9Parts have been copied to the clipboard by CopySelection().
The Subject is the collection of Parts. If you make any changes, start and commit your own transaction.
ClipboardPasted = 10Parts have been copied from the clipboard into the Diagram by PasteSelection(Point?).
The Subject is the Selection, and this is called within a transaction.
DocumentBoundsChanged = 11The area of the diagram's Parts, DocumentBounds, has changed.
ElementContextClicked = 23A context-click that occurred on a GraphObject.
The Subject is the GraphObject. If you make any changes, start and commit your own transaction.
ElementDoubleClicked = 22A double-click that occurred on a GraphObject.
The Subject is the GraphObject. If you make any changes, start and commit your own transaction.
ElementSingleClicked = 21A click that occurred on a GraphObject.
The Subject is the GraphObject. If you make any changes, start and commit your own transaction.
ExternalElementsDropped = 12Parts have been copied into the Diagram by drag-and-drop from outside of the Diagram.
The Subject is the set of Parts that were dropped (which is also the Selection), the Parameter is the source Diagram, and this is called within a transaction. If you choose, you can cancel the drop by executing:
e.Diagram.ToolManager.DraggingTool.TransactionResult = null;GainedFocus = 13The diagram has gained keyboard focus, such as after a call to Focus().
InitialAnimationStarting = 1The initial DefaultAnimation is about to start.
This can be useful for customizing the initial animation, see InitialAnimationStyle.
InitialLayoutCompleted = 14The whole diagram layout has updated for the first time since a major change to the Diagram, such as replacing the Model.
If you make any changes, you do not need to perform a transaction.
LayoutCompleted = 15The whole diagram layout has just been updated.
If you make any changes, you do not need to perform a transaction.
LinkDrawn = 16The user has just created a new Link using LinkingTool.
The Subject is the new Link, and this is called within a transaction.
LinkRelinked = 17The user has just reconnected an existing Link using RelinkingTool or DraggingTool.
The Subject is the modified Link, the Parameter is the GraphObject port that the link was disconnected from, and this is called within a transaction.
LinkReshaped = 18The user has just rerouted an existing Link using LinkReshapingTool.
The Subject is the modified Link, the Parameter is the list of Points of the link's original route, and this is called within a transaction.
LostFocus = 19The diagram has lost keyboard focus, a.k.a. "blur".
Modified = 20The IsModified property has been set to a new value -- useful for marking a window as having been modified since the last save.
Do not modify the Diagram or its Model in the event listener.
PartCreated = 24The user inserted a new Part by ClickCreatingTool.
The Subject is the new Part, and this is called within a transaction.
PartResized = 25The user has changed the size of a GraphObject by ResizingTool.
The Subject is the GraphObject, the Parameter is the original Size, and this is called within a transaction.
PartRotated = 26The user has changed the angle of a GraphObject by RotatingTool.
The Subject is the GraphObject, the Parameter is the original angle in degrees, and this is called within a transaction.
SelectionCopied = 28The user has copied selected Parts by DraggingTool.
The Subject is Set of the newly copied Parts, and this is called within a transaction.
SelectionDeleted = 29The user has deleted selected Parts by DeleteSelection().
The Subject is the collection of Parts that were deleted, and this is called within a transaction.
SelectionDeleting = 30The user is about to delete selected Parts by DeleteSelection().
The Subject is the Selection collection of Parts to be deleted, and this is called within a transaction.
SelectionGrouped = 31The user has made a new Group out of the selected Parts by GroupSelection().
The Subject is the new Group, and this is called within a transaction.
SelectionMoved = 27The user has moved selected Parts by DraggingTool.
The Subject is a Set of the moved Parts, and this is called within a transaction.
SelectionUngrouped = 32The user has removed a selected Group but kept its members by UngroupSelection(Group).
the Subject is the collection of Groups that were ungrouped, the Parameter is the collection of former member Parts that were ungrouped, and this is called within a transaction.
SubGraphCollapsed = 33The user has collapsed selected Groups by CollapseSubGraph(Group).
The Subject is the collection of Groups that were collapsed, and this is called within a transaction.
SubGraphExpanded = 34The user has expanded selected Groups by ExpandSubGraph(Group).
The Subject is the collection of Groups that were expanded, and this is called within a transaction.
TextEdited = 35The user has changed the string value of a TextBlock by TextEditingTool.
The Subject is the edited TextBlock, the Parameter is the original string, and this is called within a transaction.
TreeCollapsed = 36The user has collapsed selected Nodes with subtrees by CollapseTree(Node).
The Subject is the collection of Nodes that were collapsed, and this is called within a transaction.
TreeExpanded = 37The user has expanded selected Nodes with subtrees by ExpandTree(Node).
The Subject is the collection of Nodes that were expanded, and this is called within a transaction.
ViewportBoundsChanged = 38The visible area of the Diagram, ViewportBounds, has changed.
The Subject is an object whose "Scale" property is the old Scale value, whose "Position" property is the old Position value, and whose "Bounds" property is the old ViewportBounds value. The Parameter is also the old ViewportBounds Rect.