Skip to content

DevExpress-Examples/how-to-create-custom-diagram-containers-and-register-them-in-the-toolbox-and-ribbon-gallery-t466447

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Files to look at:

How to create custom diagram containers and register them in the toolbox and ribbon gallery

In this example, we show how to create containers with custom headers and padding. 
DiagramControl supports a special language for defining containers. The root element that contains a container description is ContainerShapeTemplate. This element describes a container contour and may contain several segments

  • Start. Specifies the start point
  • Line. Defines a line with start and end points
  • Arc. Defines an arc with start and end points

    To define a container's header editor position, use the EditorBounds property. To specify a padding, set the ActualPadding property.
    To register custom containers in the ribbon gallery, use the DiagramContainerGalleryRegistrator.RegisterContainerShapes method.

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)