Silverlight version 4 Beta introduces APIs to support dragging a file list to a Silverlight application. You can also handle right-click mouse events and change the behavior (for example show context menu). In this post I’ll show demo with these new features.
There’ re some limitations with current drag and drop implementation. Only file drag and drop is supported. For drag and drop to work on Windows, Silverlight plugin must be windowed (<param name="windowless" value="false"/>). In order to use drag-and-drop events for applications hosted by Safari on Macintosh, you must forward the relevant DOM events from your own HTML-level scripting to the specific API of the control.
Useful links
- http://silverlight.net/learn/videos/all/silverlight-controls-drop-targets/
- http://silverlight.net/learn/videos/all/right-click-mouse-events/
- http://microsoftpdc.com/Sessions/P09-11
- http://scorbs.com/2009/11/19/pdc-session-silverlight-4-beta-overview/
- http://channel9.msdn.com/learn/courses/Silverlight4/ImageBrowser/ImageBrowser/
- http://channel9.msdn.com/learn/courses/Silverlight4/PicBrowser/PicBrowser/
- http://www.ningzhang.org/2009/11/28/silverlight-drag-and-drop-api/
- http://msdn.microsoft.com/en-us/library/cc189029(VS.96).aspx
- http://msdn.microsoft.com/en-us/library/ee670998(VS.96).aspx
No comments:
Post a Comment