I am receiving the following exception when attempting to serialize a DockSite implemented using MVVM. MyModel is serializable. Is there a way around this?
Thanks,
John
System.InvalidOperationException was caught
HResult=-2146233079
Message=Cannot serialize a generic type 'ActiproSoftware.Windows.DeferrableObservableCollection'1[MyModel]'.
Source=PresentationFramework
StackTrace:
at System.Windows.Markup.Primitives.MarkupWriter.VerifyTypeIsSerializable(Type type)
at System.Windows.Markup.Primitives.MarkupWriter.WriteItem(MarkupObject item, Scope scope)
at System.Windows.Markup.Primitives.MarkupWriter.WriteItem(MarkupObject item, Scope scope)
at System.Windows.Markup.Primitives.MarkupWriter.WriteItem(MarkupObject item)
at System.Windows.Markup.Primitives.MarkupWriter.SaveAsXml(XmlWriter writer, MarkupObject item)
at System.Windows.Markup.Primitives.MarkupWriter.SaveAsXml(XmlWriter writer, Object instance)
at System.Windows.Markup.XamlWriter.Save(Object obj, XmlWriter xmlWriter)
at ActiproSoftware.Windows.Serialization.XamlSerializer.SaveToXmlWriter(XmlWriter writer, Object value)
at ActiproSoftware.Windows.Serialization.XamlSerializer.SaveToString(Object value)