Connections sometimes below connectors

2 posts, 0 answers
  1. Kristoffer
    Kristoffer avatar
    158 posts
    Member since:
    Dec 2012

    Posted 05 Jun 2013 Link to this post

    I have custom styled connections and connectors. When I drag a connection between connector A and B, the line is (correctly) on top of the connectors. However, as soon as I have selected the nodes, the connectors end up on top of the line! This weirdness is preserved if I remove the connection and add a new one.

    What is causing the connection's line to become obscured by the connectors?
  2. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 06 Jun 2013 Link to this post

    Hello Kristoffer,

    Connectors are part of the Shapes and by default, Shapes' ZIndex is set to 2 and Connections ZIndex is set to 1 via style. But when you are attaching a connection, it's essential that the connection is on top of the shapes and we are controlling / ensuring this in code. Imagine trying to attach a connection but unable to see it because it is behind the shapes.
    Summary:
    By design in normal mode (Pointer Tool) shapes are on top of connections.
    By design in connection manipulation mode (Connector Tool or simply when attaching / detaching connection) connections are on top of the shapes.

    Regards,
    Petar Mladenov
    Telerik

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top