wpf-118181-controls-and-libraries-diagram-control-end-user-interaction.md
This document describes end-user operations available in the Diagram Control and Diagram Designer Control.
Tip
Set the DiagramControl.IsReadOnly property to true to restrict end-user operations. Setting the specific diagram protection options (listed in the DiagramControl.IsReadOnly property’s description) to true overrides the IsReadOnly property.
These operations available both in the Diagram Control and Diagram Designer Control.
Click an item to select it. To select multiple items, hold SHIFT and click items or drag to draw a marquee over the items you want to select.
Corresponding property: SelectionMode
To copy the selected items, press CTRL+C. To paste the clipboard content to the canvas, press the CTRL+V key combination. You can also hold down the CTRL key and drag the selected items.
Corresponding property: AllowCopyItems
Select the item and drag a selection handle.
Corresponding property: AllowResizeItems
Select the item and drag it or press the arrow keys.
Corresponding property: AllowMoveItems
Select the item and drag the rotation handle.
Corresponding property: AllowRotateItems
Certain shapes display yellow handles when selected. Drag the handle to transform the shape.
Corresponding property: AllowChangeShapesParameter
Double-click an item or right-click it and select the Edit text menu item. To accept changes, press the ESC key or click anywhere on the canvas.
Corresponding property: AllowEditItems
Right-click the item to invoke the mini toolbar that allows you to change the font size and make the text bold or italic.
Corresponding properties:
Drag with middle mouse button to pan the diagram canvas.
Corresponding property: AllowMiddleButtonDrag
Press the CTRL+Z / CTRL+Y key combination.
Corresponding property: AllowUndoRedo
Hold the Ctrl button and rotate the mouse wheel.
Press Ctrl+Plus and Ctrl+Minus combinations to change the zoom level.
Corresponding property: AllowZoom
Click the expand-collapse button below a shape to show or hide the subordinate items.
Press Ctrl+Space combination to expand/collapse the focused container.
These operations are only available in the Diagram Designer Control.
Drag the shape from the Shapes Panel or select a drawing tool (Rectangle, Ellipse, Right Triangle, Hexagon) in the Tools group of the Ribbon and drag on the canvas to draw the corresponding shape.
Corresponding property: AllowAddRemoveItems
Select the Container ribbon item on the Insert ribbon page.
Corresponding property: AllowAddRemoveItems
Select the item and change the Size property in the Properties Panel.
Setting the AllowResizeItems property to false does not restrict this operation.
Select the item and change the Position property in the Properties panel.
Setting the AllowMoveItems property to false does not restrict this operation.
Select the item and change the Angle property in the Properties panel.
Setting the AllowRotateItems property to false does not restrict this operation.
Select the Text tool in the Tools group of the Ribbon and click an item.
Select an item and change the Text property within the Properties panel. The AllowEditItems property does not affect this operation.
Select the item and use the Ribbon’s Font and Paragraph groups to change the font family, color and size, make text bold, italic, underline or strikethrough and apply horizontal and vertical alignment.
Corresponding properties:
Select the Pan tool in the Tools group of the Ribbon and drag on the canvas.
Select the Connector tool in the Tools group of the Ribbon and drag on the canvas. For a detailed description of connecting shapes, see Connectors.
Corresponding property: AllowAddRemoveItems
Select the Text tool in the Tools group of the Ribbon and drag on the canvas to add a rectangular shape with transparent background and outline. If you don’t type any text, the shape is automatically deleted to avoid clutter.
Click the corresponding button at the top of the Ribbon.
Corresponding property: AllowUndoRedo
Use the zoom trackbar in the Bottom Panel.
Corresponding property: AllowZoom
Select the desired theme it in the Ribbon’s Themes group on the Design page.
Corresponding property: AllowChangeTheme
Select the item and pick the desired color with the Background and Stroke color pickers. You can find the color pickers in the Ribbon’s Shape Styles group on the Home page. You can also select a predefined style in the Shape Styles group. Alternatively, change the BackgroundColor , ForegroundColor and Stroke properties in the Properties panel.
Corresponding properties:
See Also