This is a migrated thread and some comments may be shown as answers.

How to save custom In, Out connector definition to xml?

1 Answer 52 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
ITA
Top achievements
Rank 1
ITA asked on 23 May 2014, 09:37 AM
Hi,

i use a custom InOutConncetorClasse. If I drop a Shape, I add the new Points to my shape:

var outConnector = new InOutConnector() { Offset = new Point(0.5, 1), Direction = InOutConnector.eDirection.drOut, Name="StartConncetor" };
NewShape.Connectors.Add(outConnector);
NewShape.UseDefaultConnectors = false;

This works fine. Now I save my diagram to xml. If i load the diagram from xml i try to add the custom connectors again:

var outConnector = new InOutConnector() { Offset = new Point(0.5, 1), Direction = InOutConnector.eDirection.drOut, Name="x"};
(e.Shape as RadDiagramShape).Connectors.Add(outConnector);
(e.Shape as RadDiagramShape).UseDefaultConnectors = false;

The Point is correct, but the InOutConnector.eDirection does not work?

How can i save and relaod this custom connectors?

Thanks
Best Regards
Rene

1 Answer, 1 is accepted

Sort by
0
ITA
Top achievements
Rank 1
answered on 23 May 2014, 10:01 AM
Hi,

SOLVED! What is to do!

In the " xDiagram_ShapeSerialized-Event" set the e.SerializationInfo["Connectors"] = "";

have fun
Regards
Rene
Tags
Diagram
Asked by
ITA
Top achievements
Rank 1
Answers by
ITA
Top achievements
Rank 1
Share this question
or