Solved

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

Posted on 2015-01-13
1
235 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
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 video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

757 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

18 Experts available now in Live!

Get 1:1 Help Now