You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: wpf/Diagram/Serialization.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -181,7 +181,7 @@ using (Stream myStream = dialog.OpenFile())
181
181
182
182
## Importing and Exporting using Mermaid Syntax
183
183
184
-
The [SfDiagram](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Diagram.SfDiagram.html) supports saving diagrams in Mermaid syntax format. Mermaid is a Markdown-inspired syntax that automatically generates diagrams. With this functionality, you can easily create mind maps, flowcharts and sequence diagrams from Mermaid syntax data, simplifying the visualization of complex ideas and processes without manual drawing. Additionally, you can export your mind mapsand flowcharts to Mermaid syntax, allowing for easy sharing, editing, and use across different platforms.
184
+
The [SfDiagram](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Diagram.SfDiagram.html) supports saving diagrams in Mermaid syntax format. Mermaid is a Markdown-inspired syntax that automatically generates diagrams. With this functionality, you can easily create mind maps, flowcharts and sequence diagrams from Mermaid syntax data, simplifying the visualization of complex ideas and processes without manual drawing. Additionally, you can export your mind maps, flowcharts and sequence diagrams to Mermaid syntax, allowing for easy sharing, editing, and use across different platforms.
Copy file name to clipboardExpand all lines: wpf/Diagram/UML_Sequence_Diagram/Sequence-Diagram.md
+22-22Lines changed: 22 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -9,15 +9,15 @@ documentation: ug
9
9
10
10
# Sequence Diagram Model in WPF Diagram (SfDiagram)
11
11
12
-
A sequence diagram is an interaction diagram that demonstrates how objects interact with each other and the order of these interactions. The SfDiagram control provides comprehensive support for creating and visualizing UML sequence diagrams through the `UMLSequenceDiagramModel`class.
12
+
A sequence diagram is an interaction diagram that demonstrates how objects interact with each other and the order of these interactions. The `SfDiagram` control provides comprehensive support for creating and visualizing UML sequence diagrams through the [UMLSequenceDiagramModel](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Diagram.UMLSequenceDiagramModel.html) class. You need to assign the `UMLSequenceDiagramModel`to the [Model](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Diagram.SfDiagram.html#Syncfusion_UI_Xaml_Diagram_SfDiagram_Model) property of the `SfDiagram` control to enable this functionality.
13
13
14
14
## Sequence Diagram Elements
15
15
16
-
A sequence diagram consists of several key elements: participants, messages, activation boxes, and fragments. Let's explore each of these in detail.
16
+
A sequence diagram contain several key elements, such as participants, messages, activation boxes, and fragments. Let's discuss how to implement these components using the `SfDiagram` control.
17
17
18
18
### Participants
19
19
20
-
Participants in a sequence diagram represent the entities that interact with each other, appearing at the top of the diagram with lifelines extending vertically downward.
20
+
[UMLSequenceParticipant](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Diagram.UMLSequenceParticipant.html) in a sequence diagram represent the entities that interact with each other, appearing at the top of the diagram with lifelines extending vertically downward.
21
21
22
22
#### Creating Participants
23
23
@@ -81,7 +81,7 @@ Diagram.Model = new UMLSequenceDiagramModel()
@@ -93,20 +93,20 @@ Diagram.Model = new UMLSequenceDiagramModel()
93
93
94
94
### Messages
95
95
96
-
Messages represent communication between participants and are displayed as arrows connecting lifelines.
96
+
[UMLSequenceMessage](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Diagram.UMLSequenceMessage.html) represent communication between participants and are displayed as arrows connecting lifelines.
97
97
98
98
#### Types of Messages
99
99
100
-
The `UMLSequenceMessageType` enum defines the following message types:
100
+
The [UMLSequenceMessageType](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Diagram.UMLSequenceMessageType.html) enum defines the following message types:
101
101
102
102
| Message Type | Description | Example |
103
103
|---|---|---|
104
104
| Synchronous | The sender waits for a response ||
105
105
| Asynchronous | The sender continues without waiting ||
106
106
| Reply | A response to a previous message ||
107
107
| Create | Creates a new participant ||
108
-
| Delete | Terminates a participant |)|
109
-
| Self | A message from a participant to itself |||
108
+
| Delete | Terminates a participant ||
109
+
| Self | A message from a participant to itself ||
110
110
111
111
#### Creating Messages
112
112
@@ -288,7 +288,7 @@ SfDiagram Diagram = new SfDiagram();
@@ -300,7 +300,7 @@ SfDiagram Diagram = new SfDiagram();
300
300
301
301
### Activation Boxes
302
302
303
-
Activation boxes represent periods when a participant is active and processing a message. They appear as thin rectangles on participant lifelines.
303
+
[UMLSequenceActivationBox](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Diagram.UMLSequenceActivationBox.html) represent periods when a participant is active and processing a message. They appear as thin rectangles on participant lifelines.
304
304
305
305
#### Creating Activation Boxes
306
306
@@ -415,7 +415,7 @@ Diagram.Model = new UMLSequenceDiagramModel()
@@ -425,23 +425,21 @@ Diagram.Model = new UMLSequenceDiagramModel()
425
425
426
426
### Fragments
427
427
428
-
Fragments group a set of messages based on specific conditions in a sequence diagram. They are displayed as rectangular enclosures that visually separate conditional or looping interactions.
428
+
[UMLSequenceFragment](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Diagram.UMLSequenceFragment.html) groups a set of messages based on specific conditions in a sequence diagram. They are displayed as rectangular enclosures that visually separate conditional or looping interactions.
429
429
430
430
#### Types of Fragments
431
431
432
-
The `UMLSequenceFragmentType` enum defines the following fragment types:
432
+
The [UMLSequenceFragmentType](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Diagram.UMLSequenceFragmentType.html) enum defines the following fragment types:
433
433
434
-
Here is the updated table with precise descriptions and correct usage:
435
-
436
-
| Fragment Type | Description | Usage |
434
+
| Fragment Type | Description | Example |
437
435
|---------------|-------------|--------|
438
436
| Optional | Represents a sequence that is executed only if a specified condition is met; otherwise, it is skipped. ||
439
437
| Alternative | Represents multiple conditional paths (if-else structure), where only one path executes based on the condition. ||
440
438
| Loop | Represents a repeating sequence of interactions that continues based on a loop condition. ||
441
439
442
440
#### Creating Fragments
443
441
444
-
To create fragments in your sequence diagram:
442
+
To create fragments in your sequence diagram, you will need to use the `UMLSequenceFragment` to define fragments and the [UMLSequenceFragmentCondition](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Diagram.UMLSequenceFragmentCondition.html) to specify each condition block within those fragments.
445
443
446
444
{% tabs %}
447
445
{% highlight xaml %}
@@ -681,15 +679,15 @@ Diagram.Model = new UMLSequenceDiagramModel()
| ID | object | A unique identifier for the fragment |
689
687
| Type | UMLSequenceFragmentType | Type of the fragment (Optional, Loop, Alternative) |
690
688
| Conditions | IEnumerable\<UMLSequenceFragmentCondition\>| Collection of conditions for the fragment |
691
689
692
-
#### Fragment Condition Properties
690
+
#### UMLSequenceFragmentCondition Properties
693
691
694
692
| Property | Type | Description |
695
693
|---|---|---|
@@ -699,11 +697,10 @@ Diagram.Model = new UMLSequenceDiagramModel()
699
697
700
698
### Customizing Participant Spacing in Sequence Diagram
701
699
702
-
The `SpaceBetweenParticipants` property in `UMLSequenceDiagramModel` controls the horizontal gap between participants. The default value is 100, but you can adjust it as needed.
700
+
The [SpaceBetweenParticipants](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Diagram.UMLSequenceDiagramModel.html#Syncfusion_UI_Xaml_Diagram_UMLSequenceDiagramModel_SpaceBetweenParticipants) property in `UMLSequenceDiagramModel` controls the horizontal gap between participants. The default value is 100, but you can adjust it as needed.
0 commit comments