# diagram-sequence-diagram

> UML sequence diagram with Actor nodes, InteractionOperand containers, and swimlane visualization.

**Framework:** wpf  **Component:** Diagram  **Variant:** sequence-diagram

## Get this item

**If you are an agent, fetch the JSON.** Source is inlined, so one request is enough and no tooling is required:

```
GET https://ai.syncfusion.com/r/wpf/diagram-sequence-diagram.json
```

**Install Package(s)**

```bash
dotnet add package Syncfusion.SfDiagram.WPF
```

**Notes**

- Syncfusion release: 2026 Volume 3 (v35.1.37)
- The Syncfusion package is licensed. The composition in this file is source you own and edit. See https://ai.syncfusion.com/licensing.md

## Source files

### src/components/diagram-sequence-diagram/Diagram.xaml

```xaml
<UserControl
    x:Class="SequenceDiagram.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
    xmlns:local="clr-namespace:SequenceDiagram"
    mc:Ignorable="d"
    d:DesignHeight="450" d:DesignWidth="800">

    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Syncfusion.SfDiagram.WPF;component/Resources/BasicShapes.xaml" />
            </ResourceDictionary.MergedDictionaries>

            <Style TargetType="syncfusion:ConnectorPort">
                <Setter Property="Shape" Value="{x:Null}" />
            </Style>
            <Style TargetType="syncfusion:NodePort">
                <Setter Property="Shape" Value="{x:Null}" />
            </Style>
            <Style TargetType="syncfusion:Node">
                <Setter Property="ShapeStyle">
                    <Setter.Value>
                        <Style TargetType="Path">
                            <Setter Property="Fill" Value="#0067C0" />
                            <Setter Property="Stretch" Value="Fill" />
                            <Setter Property="Stroke" Value="#0067C0" />
                        </Style>
                    </Setter.Value>
                </Setter>
            </Style>
            <Style TargetType="syncfusion:Connector">
                <Setter Property="ConnectorGeometryStyle">
                    <Setter.Value>
                        <Style TargetType="Path">
                            <Setter Property="Stroke" Value="#646464" />
                            <Setter Property="StrokeThickness" Value="1" />
                        </Style>
                    </Setter.Value>
                </Setter>
            </Style>
            <Style TargetType="Path" x:Key="DecoratorStyle">
                <Setter Property="Stretch" Value="Fill" />
                <Setter Property="Width" Value="10" />
                <Setter Property="Height" Value="10" />
                <Setter Property="Fill" Value="SteelBlue" />
                <Setter Property="Stroke" Value="SteelBlue" />
                <Setter Property="StrokeThickness" Value="1" />
            </Style>
        </ResourceDictionary>
    </UserControl.Resources>

    <Grid>
        <syncfusion:SfDiagram x:Name="diagramControl" Loaded="diagramControl_Loaded"
                              Margin="5"
                              DefaultConnectorType="Line"
                              Constraints="Default,Undoable"
                              Tool="ZoomPan">

            <syncfusion:SfDiagram.ScrollSettings>
                <syncfusion:ScrollSettings ScrollLimit="Diagram" />
            </syncfusion:SfDiagram.ScrollSettings>

            <syncfusion:SfDiagram.PageSettings>
                <syncfusion:PageSettings PageBorderBrush="White" PageBackground="White" />
            </syncfusion:SfDiagram.PageSettings>
        </syncfusion:SfDiagram>
    </Grid>
</UserControl>

```
