The DevExpress ASP.NET MVC Diagram extension allows you to create custom shapes based on predefined shapes.
In this demo, the CustomShapes collection is populated with rectangle shapes (the BaseType property is set to Rectangle) that contain different texts (DefaultText). The Type property identifies custom shapes, therefore it must be specified and unique.
The SettingsToolbox property allows you to add the custom shape category to the toolbox. The DisplayMode property is set to Texts to display shape texts instead of icons in the toolbox.
Local Copy of this Demo
To inspect the source code for this demo on your machine, you must first install our components via the DevExpress Component Installer.
You can open a local copy of this online demo directly from this webpage (if using v20.2.8, 21.1.4 or higher).
The source code files for this demo are installed (by default) in the following directory:
Open CS Solution
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\MVCxDiagramDemos