This is a migrated thread and some comments may be shown as answers.

Drag on right click

1 Answer 63 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
masha reznik
Top achievements
Rank 1
masha reznik asked on 04 May 2010, 10:08 PM
Hello,
How i can set the drag event to mouse right click?

Thank you

1 Answer, 1 is accepted

Sort by
0
Bobi
Telerik team
answered on 10 May 2010, 12:10 PM
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()
{
    InitializeComponent();
             
    this.AddHandler(FrameworkElement.MouseRightButtonDownEvent, new MouseButtonEventHandler(Window1_MouseRightButtonDown), true);
}
....
private void Window1_MouseRightButtonDown(object sender, MouseButtonEventArgs e)
{
  //StartDrag or some other custom logic here....
    RadDragAndDropManager.CancelDrag();
}

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

Regards,
Bobi
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.
Tags
DragAndDrop
Asked by
masha reznik
Top achievements
Rank 1
Answers by
Bobi
Telerik team
Share this question
or