Version

Commands Overview (xamDiagram)

Topic Overview

Purpose

This topic explains the operational logic of the commands available in the xamDiagram™ control.

Required background

The following topics are prerequisites to understanding this topic:

Topic Purpose

This topic provides a conceptual overview of the xamDiagram control and its main features and capabilities.

xamDiagram Commands

Commandssummary

The xamDiagram control supports a number of commands which can represent an action performed on diagram items or an interaction with the UI of the control or have some impact on its undo/redo operations history. The commands can be invoked using keyboard shortcuts, interactions with other controls, etc.

Most of the commands are associated to keyboard keys and key combinations according to the existing computing interface standards (like using Ctrl+C for copy, etc.). Keyboard shortcuts (or key combinations) can be overriden programmatically. (For details, see Configuring Keyboards Shortcuts).

Commands summary chart

The following table summarizes the commands supported by the xamDiagram control and maps them to the pre-configured keyboard shortcuts.

Command Property Details Key

A diagram item can moved in front of the item that is currently over it.

A diagram item can be moved in front of all items.

Ctrl+Shift+F

A diagram item can be copied after it has been selected and the respective keyboard shortcut (or combination) has been applied.

Ctrl+C

The user can cut the currently selected diagram item(s).

Ctrl+X

The user can delete the currently selected diagram item(s).

Del

If a single item is selected, it enters edit mode upon the execution of this command.

If an item is currently being edited, it will exit edit mode upon the execution of this command.

The user can hide the Options pane by pressing the Esc key while it has focus.

Esc

Copied diagram item(s) can be pasted on the surface of the diagram.

Ctrl+V

Redoing an operation re-applies the last operation on (a) diagram item(s) if it has been previously reverted with the Undo command.

Ctrl+Y

For the Select All command to be applied, the diagram must have the focus.

Ctrl+A

A diagram item can moved in behind the item that is currently behind it.

A diagram item can be moved behind all other items.

Ctrl+Shift+B

The user can show the Options pane by clicking the gear-like icon which appears upon diagram item’s/items’ selection if the visibility of the Options pane has been enabled.

Executes the EnterEditMode or the ExitEditMode commands depending on whether there is an edited item in the diagram.

F2

Applying Undo causes the last operation applied to be reverted and all affected objects – restored to their previous state.

Ctrl+Z

Related Topics

The following topics provide additional information related to this topic.

Topic Purpose

This topic explains how to use the commands provided by xamDiagram in UI element controls such as menus and buttons.

This topic explains how to change the keyboard shortcuts associated with xamDiagram commands.