Wednesday, December 9, 2009

New features in Silverlight 4 Beta: Dragging Files and Right Click

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.

silverlight_drag_1silverlight_drag_2

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

No comments: