Shape / Connection Linked List

3 posts, 1 answers
  1. SPARE GmbH
    SPARE GmbH avatar
    18 posts
    Member since:
    Mar 2012

    Posted 24 Jul 2012 Link to this post

    Hy,

    Is it possible to get a Linked List combined with Shape - Connection -- Shape etc.
    As A Example

    - Shape 1
       - Connection 1
            - Shape2
               - Connection 1
                   - Shape 5
       - Connection 2
           - Shape 3

    Kind Regards

    Alfred
  2. Answer
    Miro Miroslavov
    Admin
    Miro Miroslavov avatar
    588 posts

    Posted 25 Jul 2012 Link to this post

    Hello Alfred,

     The RadDiagram has a few very handy extension methods that you can use to achieve such a List.

    public static IEnumerable<IConnection> GetOutgoingConnectionsForShape(this IGraph graph, IShape shape)
    ...
    public static IEnumerable<IConnection> GetIncomingConnectionsForShape(this IGraph graph, IShape shape)

    So you can easily query the Diagram to build such, just use this methods in a loop or recursion method.
    Please let us know if you have any questions regarding their usage.
     

    Regards,
    Miro Miroslavov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
  4. SPARE GmbH
    SPARE GmbH avatar
    18 posts
    Member since:
    Mar 2012

    Posted 25 Jul 2012 Link to this post

    Hy Miro,

    Thanks for the Answer.
    That was exactly what i looking for.

    Greetings

    Alfred
Back to Top