This question is locked. New answers and comments are not allowed.
Good morning
I have a problem with this control, I have an area where I must drag and drop a file, but i need that only in this area the icon that indicate you can drag and drop, in other case must be the normal cursor.
Thanks.
I have a problem with this control, I have an area where I must drag and drop a file, but i need that only in this area the icon that indicate you can drag and drop, in other case must be the normal cursor.
Thanks.
5 Answers, 1 is accepted
0
Leonard
Top achievements
Rank 1
answered on 03 Jul 2013, 07:39 PM
Hi again,
Basically i need drag a file from desktop (for example) to the area, I need set the mouse cursor.
Thanks.
Basically i need drag a file from desktop (for example) to the area, I need set the mouse cursor.
Thanks.
0
Hi Leonard,
Can you please take a look at this online demo and see how we implement such functionality. Basically, you need to subscribe to the native DragEnter event on the RadUploadDropPanel and change the mouse cursor according your needs.
I hope this information will help you.
Regards,
Pavel R. Pavlov
Telerik
Can you please take a look at this online demo and see how we implement such functionality. Basically, you need to subscribe to the native DragEnter event on the RadUploadDropPanel and change the mouse cursor according your needs.
I hope this information will help you.
Regards,
Pavel R. Pavlov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Leonard
Top achievements
Rank 1
answered on 08 Jul 2013, 01:09 PM
Hi Pavel thanks for your answer
I tested your recommendation as follow:
private void UIElement_OnDragEnter(object sender, DragEventArgs e)
{
this.Cursor = Cursors.Hand;
}
anyway I can not get change the cursor while I'm dragging the file from the desktop (see image).
In the demo does not work.
Thanks.
I tested your recommendation as follow:
private void UIElement_OnDragEnter(object sender, DragEventArgs e)
{
this.Cursor = Cursors.Hand;
}
anyway I can not get change the cursor while I'm dragging the file from the desktop (see image).
In the demo does not work.
Thanks.
0
Tomas
Top achievements
Rank 1
answered on 08 Jul 2013, 01:37 PM
Hi,
We have the same problem, we did a quickly test in the code of the demo project and it doesn't work how we expected. In our test the backgorud change correctly but the cursor doesn't change. Are we missing something here ?...
Check the code lines
We have the same problem, we did a quickly test in the code of the demo project and it doesn't work how we expected. In our test the backgorud change correctly but the cursor doesn't change. Are we missing something here ?...
Check the code lines
RadUploadDropPanel1.Cursor = Cursors.Wait;
RadUploadDropPanel1.Cursor = Cursors.Arrow;
private void RadUploadDropPanel1_DragEnter(object sender, DragEventArgs e) { Color backgroundColor = new Color(); backgroundColor = Colors.Green; this.RadUploadDropPanel1.Background = new SolidColorBrush(backgroundColor); RadUploadDropPanel1.Cursor = Cursors.Wait; } private void RadUploadDropPanel_DragLeave(object sender, DragEventArgs e) { this.RadUploadDropPanel1.Background = new SolidColorBrush(Colors.White); RadUploadDropPanel1.Cursor = Cursors.Arrow; } private void Grid_DragEnter(object sender, DragEventArgs e) { } private void RadUploadDropPanel1_DragOver(object sender, DragEventArgs e) { RadUploadDropPanel1.Cursor = Cursors.Eraser; }0
Hi guys,
Unfortunately in Silverlight during a native drag operation, the Cursor of a control cannot be updated. Please accept my apology for this misunderstanding.
Regards,
Tina Stancheva
Telerik
Unfortunately in Silverlight during a native drag operation, the Cursor of a control cannot be updated. Please accept my apology for this misunderstanding.
Regards,
Tina Stancheva
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>