How would you implement drag-and-drop in silverlight?



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

Post New Answer

More Microsoft Silverlight Interview Questions

Can we use external fonts in Silverlight? How

1 Answers  


what is silverlight run time?

1 Answers   Microsoft,


Can you elaborate how to start a silverlight application with visual studio?

1 Answers  


What is the difference between Silverlight4 and Silverlight5?

1 Answers   HCL,


What is Storyboard class in Silverlight?

1 Answers   Tech Mahindra,


What is the difference between silverlight and flash?

1 Answers  


What audio or video formats are supported in silverlight?

1 Answers  


What is xaml ?

1 Answers  


What is Microsoft Silverlight?

1 Answers  


Explain the use of clientbin folder in silverlight

1 Answers  


what is .xap file?

1 Answers   Microsoft,


what is the use of client bin folder?

1 Answers   Microsoft,


Categories