I use mindmap example code, but why the connector doesn't align with element's bottom edge?

4 posts, 1 answers
  1. Jonathan
    Jonathan avatar
    26 posts
    Member since:
    Jan 2016

    Posted 01 Aug Link to this post

    Hi , I use mindmap example code, but why the connector doesn't align with element's bottom edge?

    Please see the attachment pictures, thanks!

  2. Jonathan
    Jonathan avatar
    26 posts
    Member since:
    Jan 2016

    Posted 01 Aug in reply to Jonathan Link to this post

    the pictures
  3. UI for WPF is Visual Studio 2017 Ready
  4. Answer
    Kiril Vandov
    Admin
    Kiril Vandov avatar
    324 posts

    Posted 03 Aug Link to this post

    Hello Jonathan,

    The connectors of the shapes are located next to the edge of the Shapes(outside of the shape boundaries). That said the connector center to witch the connection is connected is not overlapping the shape border.
    In order to make the center of the connector and the shape boundaries to overlap you should change the position of the connector itself. I have noticed that you are having custom connectors which are located at the angles of the shape and their position is ( 0 1 and 1 1). For instance if the border of the shape and the connection connector to it are 1px you should offset the position of the connector to (0  0.99) doing so the connection will overlap the edge of the shape.

    I hope this information helps.

    Kind regards,
    Kiril Vandov
    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  5. Jonathan
    Jonathan avatar
    26 posts
    Member since:
    Jan 2016

    Posted 19 Aug in reply to Kiril Vandov Link to this post

    thank you! It works~~
Back to Top