How to save page layout after drag drop changes?

May 20, 2010 at 5:14 PM

Hello Kevin,

Great application. Maybe you or someone in this discussion can point me in the right direction. What I am trying to do is save the page and UIelements layout. The page is using your drag and drop functionality.  I want to save the state (layout) of each users page and child controls upon application_exit as XML, and when the user returns be able to present them with the same page they left with. Being new to silverlight I am unsure of the class / methods needed. Your assistance would be appreciated.

 Thank you

Jun 3, 2010 at 8:54 AM
Edited Jun 3, 2010 at 8:56 AM

I guess that you should have a sub that just scans the visual tree all the way down and gets elements' X, Y and Z-index,  write them into whatever you want together with the user id. When the app loads again, you should check if the user state is present in your XML, if so, position the elements accordingly.

You can post this also on silverlight forums as the question is not so reltated to Kevin's Drag'n'Drop Wonder.