Drag on right click

2 posts, 0 answers
  1. masha reznik
    masha  reznik avatar
    17 posts
    Member since:
    Jan 2010

    Posted 04 May 2010 Link to this post

    How i can set the drag event to mouse right click?

    Thank you
  2. Bobi
    Bobi avatar
    513 posts

    Posted 10 May 2010 Link to this post

    Hello masha reznik,

    I am not sure if I understood you correctly. I suppose that you want to perform some DragDrop functionality using MouseRightButtonClick. If so the you can try the following:

    public Window1()
        this.AddHandler(FrameworkElement.MouseRightButtonDownEvent, new MouseButtonEventHandler(Window1_MouseRightButtonDown), true);
    private void Window1_MouseRightButtonDown(object sender, MouseButtonEventArgs e)
      //StartDrag or some other custom logic here....

    I hope that this will help you. Please let us know if you have any other questions or need some more help.

    the Telerik team

    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 Public Issue Tracking system and vote to affect the priority of the items.
Back to Top