Back to Devexpress

Create Runtime Diagram Designer

windowsforms-114836-controls-and-libraries-diagrams-diagram-control-creating-runtime-diagram-designer.md

latest1.6 KB
Original Source

Create Runtime Diagram Designer

  • Sep 22, 2025
  • 2 minutes to read

When you add a DiagramControl to your application, only basic diagram customization operations are available to users at runtime. These include:

  • modifying shape text;
  • moving and deleting shapes;
  • cut/copy/paste operations;
  • undo/redo functionality.

Follow the steps below to create the Diagram Designer and enable additional diagram customization features. You can skip a step if the corresponding functionality is not required.

  1. Add the Ribbon menu.

  2. Add the Toolbox and Property Grid. The Toolbox allows users to add new diagram shapes, and the Property Grid allows users to configure a selected diagram item’s settings. Select the Create Toolbox and Property Grid smart tag item to add the the panels. This step also adds the DockManager functionality.

  3. Add the Pan and Zoom Panel to help users navigate large and complex diagrams. Select the Create Pan and Zoom panel item to generate a PanAndZoomDockPanel that contains a DiagramPanAndZoomControl.