Move diagram with middle mouse

3 posts, 0 answers
  1. nicolas
    nicolas avatar
    27 posts
    Member since:
    Mar 2017

    Posted 22 Nov 2017 Link to this post

    Hi,

    I would like to use middle mouse to move viewport ?

    Can you help me please ?

    Thanks,

    Nicolas

  2. Dinko
    Admin
    Dinko avatar
    475 posts

    Posted 27 Nov 2017 Link to this post

    Hi nicolas,

    Using different button in order to pan the diagram is not supported out of the box. You can achieve this behavior using custom implementation. Basically, you can subscribe to the MouseDown and MouseUp events of the RadDiagram. In the event handlers, you can check the current press button and change the ActiveTool property of the diagram.

    For your convenience, I have created sample project which demonstrates this approach. You can additionally modify this project so it fits in your main application.

    Regards,
    Dinko
    Progress Telerik
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
  3. nicolas
    nicolas avatar
    27 posts
    Member since:
    Mar 2017

    Posted 27 Nov 2017 Link to this post

    thanks for your help, i've already subscribe to this events but i didn't know how to call the good tool but with your example it 's easy ;)
Back to Top