Diagram control uses XAML Writer/Reader for serialization purposes while saving, loading, copy, paste, drag and drop from palette. XamlReader.Load cannot be used for deserialization when duplicate name is identified. When you try to do so, a System.Windows.Markup.XamlParseException exception occurs.
To overcome this limitation, don’t specify duplicate names to any VisualElement. When there is any necessity to have duplicate values, you can add custom properties by creating a new class derived from ConnectionPort, Node, etc. This is explained in the following code example.
This page will automatically be redirected to the sign-in page in 10 seconds.