This code takes the DataContext of the Diagram and Serializes it to XML and saves it to file. However, I want to keep the shape's properties in my own object as XML. So, I don't want it to save to file. I want to the read the value into my own object then Serialize my object using XmlSerialization. Is there any other option to get diagram to give up its XML? Can this be done using your Persistance framework?
As always, a code example is appreciated.
As always, a code example is appreciated.
FileManager fileManager =
new
FileManager(diagram);
fileManager.SaveToFile(FileLocation.Disk);