Solved

Is it possible to get an MVVM ViewModel to be serialised for use by the SuspensionManager?

Posted on 2015-01-13
1
239 Views
Last Modified: 2015-01-27
When deriving a ViewModel from Galasoft MVVMLight's ViewModelBase or Prism's BindableBase the SuspensionManager will fail because the both ViewModelBase and BindableBase are not serialisable.
Is there away around this so that the contract serialiser will work or are the only options to either ditch the base class or rework the SuspensionManager to use JSON deserialization instead?
Are there any good code samples kicking around that reworks the SuspensionManager?
0
Comment
Question by:Navigator101
1 Comment
 
LVL 22

Accepted Solution

by:
ambience earned 500 total points
ID: 40548591
It should be possible to implement ISerializable on the most derived class and write serialization code there. This is how you get around the limitations of base classes not being serializable.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
New to SOAP and need some direction 10 40
coded character set iptc field within a jpeg 1 67
Need a complete list of ASP.NET page load events 3 25
Entity Framework 7 28
With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now