MindFusion.Wpf Pack Programmer's Guide
HandlesStyle Enumeration
See Also
 





Enumerates possible visual styles for frames that are drawn around selected nodes.

Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf

 Syntax

C#  Copy Code

public enum HandlesStyle

Visual Basic  Copy Code

Public Enum HandlesStyle

 Members

  Member name Description

Custom

Diagramming for WPF raises the DrawAdjustmentHandles and HitTestAdjustmentHandles events to let your application perform custom drawing and hit testing of selection handles.

DashFrame

If selected, a node is drawn with a dashed frame. The frame enables resizing the node. The center of the node allows moving it and the edge area enables creating links.

EasyMove

Any point of the interior of a node enables moving the node, except a small area in the center that allows creating links. Best used with ModificationStart set to AutoHandles.

HatchFrame

If selected, the object is drawn with hatched frame. Modifications can be done as with DashFrame.

HatchHandles

If selected, a node is drawn with both hatched frame and modification handles. The frame enable moving the node, and the handles enable resizing. Links are created from any point of the interior.

HatchHandles2

Looks like HatchHandles, but allows moving the node from the interior area. Links are created from the points near the edge.

HatchHandles3

Behaves like HatchHandles2, but paints the selection frame using a denser brush pattern.

Invisible

There is no visible difference between selected and unselected node.

InvisibleMove

There aren't any selection handles displayed. The selected node can be only moved, but not resized.

MoveOnly

If a node is selected, it can be only moved. Best used with ModificationStart set to AutoHandles.

RoundAndSquare

Corner resize handles are round, remaining handles are square.

RoundAndSquare2

Corner resize handles are round, remaining handles are square. In addition, there is a dashed frame drawn around selected nodes.

SquareHandles

If selected, the node is drawn with square modification handles.

SquareHandles2

Square resize handles are drawn around a selected node. There isn't a move-handle in the center as with the SquareHandles style, but nodes can be moved by dragging their interior or caption areas. Links can be created by drawing from near the edges of a node.

 Remarks

The selection style can be set independently for individual nodes and links by their DiagramNode.HandlesStyle and DiagramLink.HandlesStyle property.

If ModificationStart is set to AutoHandles, adjustment handles appear automatically when the mouse pointer moves over an item, and users won't have to click on the item to see its handles.

Apart from setting items' handle styles and AutoHandles mode, an alternative way to let users easily move nodes is setting Behavior to MoveNodes.

 See Also

MindFusion.Diagramming.Wpf Namespace