views:

23

answers:

0

How can I handle a singular right mouse click event, while an object is being dragged? I've tried handling it with QueryContinueDrag event:

void object_QueryContinueDrag(object sender, QueryContinueDragEventArgs e)
    {
        if (e.KeyStates == (DragDropKeyStates.LeftMouseButton | DragDropKeyStates.RightMouseButton)) //TODO

however it doesn't work properly, causing the event to reoccur continuously, while both buttons are being pressed, and what i need is just one click with right button.