none
Is there a way to separate the "Data" from the “GUI” in PivotViewer?

    General discussion

  • Hello all,

    I have a design problem and I hope to get an advice from the Silverlight/PivotViewers experts in this forum. I’m novice to C#, Silverlight, web services and .net applications, so apologize upfront if this is a stupid question.

    I have a static pivot collection (specified using a combination of .cxml file and deepzoom images). Using Silverlight 5, I am able to view the collection in a pivotviewer control and add additional information that was not existed before in original .cxml file. The next step will be, naturally, to provide some form of data persistence, that will allow the user to save/load the modified model data (so his changes won’t get lost).

    To this end, I created a WCF web service that can get/send data from/to the Silverlight client (that contain the pivotViewer control). Ideally, I’d save on the server “just” the model data (that was originally specified in the .cxml file), and not everything that is referenced in ‘pivotViewerItem’). 

    My questions:

    a) is there a way to separate between the items facet data (i.e., what is described by the collection schema) from the rest of the “GUI” state (the viewer)?

    b) Is there any build-in support for saving updates to ItemSource ? 

    c) What is the accepted mechanism for serialization in Silverlight application?

    Thanks! Liram 

    Monday, January 23, 2012 9:57 AM

All replies