Hi
Stephen Shake,
Thanks
for contacting Syncfusion support.
We
analyzed the provided sample and found that the exception is raised due to the
following properties ‘TableBasePath’ & ‘TableBasePath’ doesn’t have set accessor.
Since both the properties depends on the values of EntityNode’s Content property
it is sufficient to serialize ‘Content’ property alone and you can remove the
DataMember attributes for those properties.
Also
we don’t serialize the Content and ContentTemplate properties of the NodeViewModel
by default. So we have to use custom property to store the value of Content property
while saving the diagram and on loading this value can be set back to desired
property using ItemAddedEvent. And in order to serialize a new datatype, we
have to add the new type in SfDiagram’s KnownTypes. Please find the ug
documentation for serializing a custom class:
UG
link: https://help.syncfusion.com/wpf/diagram/serialization#how-to-serialize-custom-properties
https://help.syncfusion.com/wpf/diagram/serialization#how-to-serialize-a-custom-class
Regards,
Prakash
P