Class XmlXamlWriter
- Namespace
- SharpVectors.Converters
- Assembly
- SharpVectors.Converters.Wpf.dll
This is a customized XAML writer, which provides Extensible Application Markup Language (XAML) serialization of provided runtime objects into XAML.
public sealed class XmlXamlWriter
- Inheritance
-
XmlXamlWriter
- Inherited Members
Remarks
This is designed to be used by the SVG to XAML converters, and may not be useful in general applications.
The writer is created with help from the following posts (Archived Forums):
XAML Serialization Replacement
Constructors
- XmlXamlWriter()
Initializes a new instance of the XmlXamlWriter class with the default settings.
- XmlXamlWriter(WpfDrawingSettings)
Initializes a new instance of the XmlXamlWriter class with the specified settings.
Properties
- IncludeNullExtension
Gets or sets a value indicating whether to include a null markup extension in the output XAML.
- IndentSpaces
Gets or sets the number of character string to use when indenting.
Methods
- Convert(object)
Returns a Extensible Application Markup Language (XAML) string that serializes the provided object.
- Save(object)
Returns a Extensible Application Markup Language (XAML) string that serializes the provided object.
- Save(object, Stream)
Saves Extensible Application Markup Language (XAML) information into a provided stream to serialize the provided object.
- Save(object, TextWriter)
Saves Extensible Application Markup Language (XAML) information as the source for a provided text writer object. The output of the text writer can then be used to serialize the provided object.
- Save(object, XmlWriter)
Saves Extensible Application Markup Language (XAML) information as the source for a provided XML writer object. The output of the XML writer can then be used to serialize the provided object.