Psymon

Psymon

  • NA
  • 18
  • 7.3k

Serialize user drawn lines to XML

Sep 25 2011 4:21 PM
Hi I am trying my hand at wpf and would like to know how to save user drawn lines to XML I am creating lines using linegeometry and would be grateful to know how I can save these and load them back to a canvas? Many thanks ---Posted from iPhone App---

Answers (1)

3
Psymon

Psymon

  • 0
  • 18
  • 7.3k
Sep 26 2011 11:40 AM
OK i have this now was rather simple: XmlWriter writer = XmlWriter.Create(saveFile.FileName, settings); XamlDesignerSerializationManager manager = new XamlDesignerSerializationManager(writer); XamlWriter.Save(linkedThumb, manager);