How would you implement drag-and-drop in silverlight?
Answer / Bharti Nayak
To implement drag-and-drop in Silverlight, follow these steps:
1. Set the DragDropBehavior property of your control to 'Copy' or 'Move'.
2. Handle the MouseLeftButtonDown event on a draggable item.
3. Call the BeginDrag() method to start dragging.
4. In the MouseMove event, update the position of the dragged item.
5. Handle the MouseLeftButtonUp event to stop dragging and perform any necessary actions (e.g., dropping).
| Is This Answer Correct ? | 0 Yes | 0 No |
Can we use external fonts in Silverlight? How
what is silverlight run time?
Can you elaborate how to start a silverlight application with visual studio?
What is the difference between Silverlight4 and Silverlight5?
What is Storyboard class in Silverlight?
What is the difference between silverlight and flash?
What audio or video formats are supported in silverlight?
What is xaml ?
What is Microsoft Silverlight?
Explain the use of clientbin folder in silverlight
what is .xap file?
what is the use of client bin folder?