This topic has not yet been rated - Rate this topic

XamlServices.Save Method

Processes a provided object graph into a XAML node representation and then into an output format for serialization.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method Static member Save(Object) Processes a provided object tree into a XAML node representation, and returns a string representation of the output XAML.
Public method Static member Save(Stream, Object) Processes a provided object graph into a XAML node representation and then into an output stream for serialization.
Public method Static member Save(String, Object) Processes a provided object graph into a XAML node representation and then writes it to an output file at a provided location.
Public method Static member Save(TextWriter, Object) Processes a provided object graph into a XAML node representation and then into an output that goes to the provided TextWriter.
Public method Static member Save(XamlWriter, Object) Processes a provided object graph into a XAML node representation and then writes it to the provided XAML writer.
Public method Static member Save(XmlWriter, Object) Processes a provided object graph into a XAML node representation and then writes it to the provided XmlWriter.
Top
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Symmetry is broken
XamlServices.Save() alphabetically re-orders nodes in collections. As a result, a round-trip from object-graph to stream to object-graph fails to preserve node order. This is broken behaviour.