Set the item can not drag out of diagram

3 posts, 0 answers
  1. rui
    rui avatar
    34 posts
    Member since:
    May 2014

    Posted 26 Nov 2015 Link to this post

    Is any method to set item can not drag out of diagram
  2. Martin
    Admin
    Martin avatar
    1101 posts

    Posted 27 Nov 2015 Link to this post

    Hi rui,

    If I understand you correctly you want to prevent dragging outside of the diagram's viewport (the visible render surface). Am I right? If so, you can take a look at the CustomServices SDK example which demonstrates how you can restrict the dragging to specified bounds. Basically, you can create a custom dragging service and override its drag events.

    I hope this helps.

    Regards,
    Martin
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
  4. rui
    rui avatar
    34 posts
    Member since:
    May 2014

    Posted 29 Nov 2015 in reply to Martin Link to this post

    Hi Martin,

    I am sorry my description is not clear

    you understood right and the resolution is useful

    Thank you very much!

Back to Top