Register  Login
Blog
Silverlight Desktop Blog
Jul 19

Written by: Michael Washington
7/19/2008 8:18 AM

We posted an example of a test we created that demonstrates importing content from one SilverlightDesktop window to another:

 See it live here:

http://www.adefwebserver.com/DotNetNukeHELP/Misc/Silverlight/DragAndDropTest/

We hope to have this incorporated into SilverlightDesktop by September. So far the method will not require any breaking changes with the module examples we have posted so far.

To export content you simply need to place the content on a canvas and set the Tag of the Canvas to "[draggable]".

To import content you simply need to make an interface called "ImportContent" and then implement that interface. You then write whatever logic you want to import any content your module will recognize.

Hopefully it is clear what is happening here, content is placed in a module by one developer, and it is dragged from that module and imported into a module created by a different developer who has no knowledge of the first developer.

The framework will allow a module developer to export ANY content, TextBlocks, Animation, Pictures, Video, Audio ect. The module developer implementing the "import" part can simply iterate through the objects being passed and decide what content he/she wants to recognize and import.

We welcome any comments or suggestions to our approach, It is not set in stone yet. Use the comments on this blog entry or the Forum.

Tags:
  

Terms Of Use | Privacy Statement | Copyright 2008 by SilverlightDesktop.net Dynnamite DotNetNuke Skins & Modules