Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Lesson 13. Using Drag and Drop > Using a Non-Drag-Enabled Component in a Drag-a...

Using a Non-Drag-Enabled Component in a Drag-and-Drop Operation

So far, you have been taking advantage of some of the enhanced functionality in list-based components with regard to drag and drop. Now it’s time to learn how to start drag and drop on non-enhanced components. In this particular task, the use case is very simple: You want to drag a Label control to a DataGrid. Because the Label does not have enhanced drag-and-drop functionality, there is more of a burden on you as the developer to implement it.

Understanding what the list-based components did for you is a good place to start when having to write all the implementation yourself. Here is a list of mechanisms, hidden from you when using the list-based components, that you’ll need to use when implementing drag and drop without the help of the enhanced components:


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint