wpf-120257-controls-and-libraries-diagram-control-diagram-items-managing-items-interaction.md
The Diagram control provides a set of properties that allow you to restrict end-users from performing certain operations with diagram items.
You can modify existing diagram items’ properties by accessing them using the DiagramControl.Items collection. Alternatively, use the DiagramControl.AddingNewItem event to modify the properties of an item that is about to be added to the diagram by the end-user.
|
Action
|
Item’s Property
|
Diagram’s Property
| | --- | --- | --- | |
Attaching connectors
|
DiagramItem.CanAttachConnectorBeginPoint
DiagramItem.CanAttachConnectorEndPoint
| | |
Copying
|
|
| |
Deleting
|
|
DiagramControl.AllowAddRemoveItems
| |
Editing the text
|
|
| |
Hiding subordinate items
|
DiagramItem.CanHideSubordinates
| |
Moving
|
|
| |
Moving with subordinate items
|
DiagramItem.MoveWithSubordinates
|
| |
Placing in/out of a container
|
|
| |
Resizing
|
|
DiagramControl.AllowResizeItems
| |
Rotating
|
|
DiagramControl.AllowRotateItems
| |
Selecting
|
| | |
Snapping
|
DiagramItem.CanSnapToOtherItems
| | |
Transforming
|
DiagramShape.CanChangeParameter
|
DiagramControl.AllowChangeShapesParameter
|
|
Action
|
Item’s Property
|
Diagram’s Property
| | --- | --- | --- | |
Copying
|
|
| |
Deleting
|
|
DiagramControl.AllowAddRemoveItems
| |
Dragging the begin and end points
|
DiagramConnector.CanDragBeginPoint
DiagramConnector.CanDragEndPoint
|
DiagramControl.AllowResizeItems
DiagramControl.AllowAttachDetachConnectors
| |
Dragging intermediate points
|
DiagramConnector.CanChangeRoute
|
DiagramControl.AllowChangeConnectorsRoute
| |
Editing the text
|
|
| |
Moving
|
|
| |
Selecting
|
| |
|
Action
|
Item’s Property
|
Diagram’s Property
| | --- | --- | --- | |
Attaching connectors
|
DiagramItem.CanAttachConnectorBeginPoint
DiagramItem.CanAttachConnectorEndPoint
| | |
Copying
|
|
| |
Deleting
|
|
DiagramControl.AllowAddRemoveItems
| |
Hiding subordinate items
|
DiagramItem.CanHideSubordinates
| | |
Moving
|
|
| |
Moving with subordinate items
|
DiagramItem.MoveWithSubordinates
|
| |
Placing in/out of a container
|
|
| |
Resizing
|
|
DiagramControl.AllowResizeItems
| |
Rotating
|
|
DiagramControl.AllowRotateItems
| |
Selecting
|
| | |
Snapping
|
DiagramItem.CanSnapToOtherItems
| |
|
Action
|
Item’s Property
|
Diagram’s Property
| | --- | --- | --- | |
Adding items to the container
|
| | |
Attaching connectors
|
DiagramItem.CanAttachConnectorBeginPoint
DiagramItem.CanAttachConnectorEndPoint
| | |
Copying
|
|
| |
Deleting
|
|
DiagramControl.AllowAddRemoveItems
| |
Editing the header text
|
|
| |
Hiding subordinate items
|
DiagramItem.CanHideSubordinates
| | |
Moving
|
|
| |
Moving with subordinate items
|
DiagramItem.MoveWithSubordinates
|
| |
Placing in/out of a container
|
|
| |
Resizing
|
|
DiagramControl.AllowResizeItems
| |
Rotating
|
|
DiagramControl.AllowRotateItems
| |
Selecting
|
| | |
Snapping
|
DiagramItem.CanSnapToOtherItems
| |
Use the following properties to restrict operations with child items of a DiagramContainer. These properties have a lower priority than corresponding properties of the child items.
See Also