Use the DataObject to send information of various types to the drop target. This video looks at the format property and how to use it to set the data type for the transferred data.
- [Instructor] In this demonstration I have…an application that supports drag and drop,…this time I'm dragging words on the screen,…so what I have is a match word where you try…to match the opposite word,…so I go over here to the word hot, pick it up,…you'll see that I'm getting feedback from…the user interface,…as I move in to my targets I see when…I'm over a valid target it'll change several things,…the color of the word changes and the word…in the center of the screen changes,…showing that I'm guessing at this point,…then when I drop on the correct word, hot to cold,…those are opposites, I get the word correct here,…if I take dry and drop it on wet I get correct,…if I take light and drop it on wet I get try again,…the point of this demonstration is all the things…I showed you in the previous examples of how to…start the drag operation and how to provide feedback…are the same, what's different is what am I sending…from the drag source to the drop target,…see how I did that,…go over to the main UI, let's take a look at these…
- Understanding routed events and event signatures
- Wiring up event handlers
- Event bubbling and tunneling
- Programming mouse events
- Programming keyboard and ink events