Undo and Redo Support The Undo command reverses the last action performed. For example, some of the basic operations—like translation, rotation, resizing, grouping, ungrouping, changing z-order, addition, deletion, etc.— that are performed on diagram objects (nodes and line connectors) can be reversed. The Redo command undoes the last Undo action. Alternatively, these commands can be executed using keyboard shortcuts: CTRL+Z for the Undo command and CTRL+Y for the Redo command.
Table Layout Table Layout automatically arranges nodes in a tabular structure based on specified intervals, without the need to specify offset positions for each node. The layout can be designed by specifying the number of nodes in each row and column. The nodes are assigned to rows and columns based on the order in which they are added to the model and based on the maximum nodes allowed in that row or column. Support for horizontal and vertical table expand modes have also been provided.
Multiline Label Support The labels of nodes and connectors now come with multiline support—for example, users can specify the labels to span multiple lines by setting the TextWrapping property to wrap text and set the label width. Also, several other customization properties like LabelTextTrimming, LabelForeground, LabelBackground, LabelFontStyle, LabelFontFamily, LabelTextAlignment, LabelFontSize, and LabelFontWeight have been added.
Gripper for Diagram Nodes Support for a gripper has been provided for diagram nodes. A gripper is a small rectangle that appears near the top-left corner of a node and facilitates the node drag operation. Users can drag a node by clicking and dragging the gripper. The gripper is especially useful in cases where the hit test visibility node content is set to true, which makes dragging the node difficult. The gripper can also be customized to suit your needs.
Event Mechanism Several events have been added for nodes and connectors: Node Selected, NodeUnselected, NodeDeleting, NodeDeleted, ConnectorDeleting, ConnectorDeleted, PreviewNodeDrop and PreviewConnectorDrop. Access to the objects is provided using the corresponding RoutedEventArgs of these events.
Simplified Context Menu Context menu customization has been simplified and now the custom context menu can be added to nodes and line connectors by using the corresponding context menu properties. In addition to this, NodeContextMenu and LineConnectorContextMenu properties have been implemented in DiagramView, which enables the application of a context menu to all the nodes and connectors in the diagram.