cs-sequence-diagrams

I’ve created my first project on http://github.com !

cs-sequence-diagrams is a C# library that draws sequence diagrams in a WPF control by turning this:

Alice->Bob: Hello Bob, how are you?
Note right of Bob: Bob thinks
Bob-->Alice: I am good thanks!

into this:

Example sequence diagram

You can add a sequence diagram to a C# application by making a Xaml file like this:

<UserControl x:Class="ExampleProject.ExampleControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:uml="clr-namespace:UmlDiagrams;assembly=UmlDiagrams">
    <Window.Resources>
        <uml:StringToSequenceDiagramConverter x:Key="StringToSequenceDiagramConverter"/>
    </Window.Resources>
    <DockPanel LastChildFill="True">
        <TextBlock Text="{Binding Text}" />
        <uml:SequenceDiagram DataContext="{Binding Text, Converter={StaticResource StringToSequenceDiagramConverter}, Mode=OneWay}" />
    </DockPanel>
</UserControl>