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

2 posts, 0 answers
  1. ITA
    ITA avatar
    383 posts
    Member since:
    Aug 2009

    Posted 23 May 2014 Link to this post

    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
  2. ITA
    ITA avatar
    383 posts
    Member since:
    Aug 2009

    Posted 23 May 2014 in reply to ITA Link to this post

    Hi,

    SOLVED! What is to do!

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

    have fun
    Regards
    Rene
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top