How would you implement Drag-and-drop in Silverlight?- Drag and drop in Silverlight can be implemented by using Drag Drop Manager by using DragSource and DropTarget controls.
- DragSource makes any control to be draggable and DropTarget defines a location in the application to drop the DragSources.
- This functionality is a great end-user experience.
- It allows the UIElements as a drop target and enables the implementation of this functionality for the partially trusted in-browser and out of the browser applications and elevated-trusted OOB applications.
- The System.Windows.UIElement class has two properties AllowDrop and Visibility.
The System.Windows.UIElement class has four new events:
1. DragEnter 2. DragLeave 3. DragOver 4. Drop
|