Table of Contents

Class FileSvgConverter

Namespace
SharpVectors.Converters
Assembly
SharpVectors.Converters.Wpf.dll

This converts an SVG file to the corresponding XAML file, which can be viewed in WPF application.

The root object in the converted file is DrawingGroup.

public sealed class FileSvgConverter : SvgConverter, IDisposable
Inheritance
FileSvgConverter
Implements
Inherited Members

Constructors

FileSvgConverter(WpfDrawingSettings)

Initializes a new instance of the FileSvgConverter class with the specified drawing or rendering settings.

FileSvgConverter(bool, bool, WpfDrawingSettings)

Initializes a new instance of the FileSvgConverter class with the specified drawing or rendering settings and the saving options.

Properties

Drawing

Gets the last created drawing.

FallbackOnWriterError

Gets or sets a value indicating whether to fall back and use the .NET Framework XAML writer when an error occurred in using the custom writer.

WriterErrorOccurred

Gets a value indicating whether a writer error occurred when using the custom XAML writer.

XamlFile

Gets the output XAML file path if generated.

ZamlFile

Gets the output ZAML file path if generated.

Methods

Convert(Stream, string)

This performs the conversion of the specified SVG source, and saves the output to the specified XAML file.

Convert(TextReader, string)

This performs the conversion of the specified SVG source, and saves the output to the specified XAML file.

Convert(string)

This performs the conversion of the specified SVG file, and saves the output to an XAML file with the same file name.

Convert(string, string)

This performs the conversion of the specified SVG file, and saves the output to the specified XAML file.

Convert(XmlReader, string)

This performs the conversion of the specified SVG source, and saves the output to the specified XAML file.