• Material 3
  • Fluent
  • Fluent 2
  • Bootstrap 5
  • Tailwind CSS
  • High Contrast
  • Fluent 2 High Contrast
Preferences
Mode Selection
Touch
Mouse
Theme Selection
Theme Mode
Localization
*Translated by Google Translator.
Currency

Example of Connectors in ASP.NET Core Diagram Control

This sample visualizes the data flow in a marketing process using predefined shapes and connectors. Different types of connectors and decorators are used to customize the appearance, path, and direction of the data flow.

DEMO
SOURCE
Properties
Connector types
Decorators
Decorators Size
Appearance

In this example, you can see how to add connectors to connect the shapes and how to customize the appearance of the connectors. You can use the style property of the connector to customize its stroke style. You can use the cornerRadius property to add connectors with rounded corners.

To change the appearance, click on different styles in the property panel to modify the connector type, decorator shapes, and decorator sizes. The type property of the connector defines its segment type. The shape property specifies the shapes for the source, target, and segment decorators. You can adjust the size of the source and target decorators by setting their widthand height. Additionally, thesegmentThumbSizeproperty allows you to modify the size of the segment decorator when the connector is selected.

In this example, the shapes are automatically arranged using hierarchical tree layout.

Injecting Module

Diagram component's features are segregated into individual feature-wise modules. To automatically arrange the shapes, we need to Inject HierarchicalTree module using Diagram.Inject(HierarchicalTree) method.

Transform your ASP.NET Core web apps today with Syncfusion® ASP.NET Core components
85+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE
opens in a new tab