Changing left mouse button behavior

3 posts, 0 answers
  1. Jason
    Jason avatar
    3 posts
    Member since:
    Jul 2012

    Posted 06 Jun 2013 Link to this post

    Is there any way to change the default behavior of the left mouse button when clicking on an empty area of a diagram?
    By default it creates a selection rectangle but I would prefer if it defaulted to drag mode (the same as when you Ctrl-Left click).

    Is this possible?
  2. Stefan
    Admin
    Stefan avatar
    89 posts

    Posted 11 Jun 2013 Link to this post

    Hi Jason,

    In order to implement your scenario you have to handle the KeyDown and KeyUp events of the RadDiagram and in their event handlers to change the ActiveTool property dynamically from PointerTool to PanTool. Here you can check a possible implementation of this approach.

    Regards,
    Stefan
    Telerik

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Jason
    Jason avatar
    3 posts
    Member since:
    Jul 2012

    Posted 11 Jun 2013 Link to this post

    Thanks Stefan, that solution worked well.
Back to Top