Invoke a connection manipulation from code

2 posts, 0 answers
  1. Gary
    Gary avatar
    6 posts
    Member since:
    Feb 2013

    Posted 18 Oct 2013 Link to this post

    Hi,

    Is there any way we can begin a connection manipulation from code?

    Specifics:

    We want to have a context menu item on a RadDiagramShape, that when clicked gets the associated Connection, sets the connection's Source to null and effectively puts the connection into attaching / moving mode, so that the connection source end point effectively snaps to the mouse position and allows the user to reattch it to another RadDiagramShape / node.

    We can easily get the relevant connection but how do we begin this user manipulation?

    Gary.
  2. Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1182 posts

    Posted 23 Oct 2013 Link to this post

    Hi Gary,

    I understand your requirement. Unfortunately, the RadDiagramConnection does not support moving through code.

    However, you are allowed to update its Source and Target properties. Is it possible for you to predefine those properties and update them on a button click - rather than freely moving the target point where the mouse is rendered.

    Regards,
    Pavel R. Pavlov
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top