Edit this page

Set Cursor to Arrow while Dragging

The cursor displayed on dragging with DragDropManager is derived from the DragDropEffects set in DragInitialize event. However, you are free to override it and define it based on your specific requirements. For the purpose you may use the GiveFeedback event.

An example for such an implementation is illustrated below:

//Subscribing to the GiveFeedback event
DragDropManager.AddGiveFeedbackHandler(SampleListBox, OnGiveFeedBack);
//Handling the GiveFeedback event
private void OnGiveFeedBack(object sender, Telerik.Windows.DragDrop.GiveFeedbackEventArgs args)
{
      args.SetCursor(Cursors.Arrow);
      args.Handled = true;
}
DragDropManager.AddGiveFeedbackHandler(Me, New GiveFeedbackEventHandler(AddressOf OnGiveFeedBack))
Private Sub OnGiveFeedBack(sender As Object, e As Telerik.Windows.DragDrop.GiveFeedbackEventArgs) 
   args.SetCursor(Cursors.Arrow)
   args.Handled = True
End Sub
Was this article helpful? Yes No

Give article feedback

Tell us how we can improve this article

Dummy