Table of Contents

Class DirectorySvgConverter

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

This converts a directory (and optionally the sub-directories) of SVG files to XAML files in a specified directory, maintaining the original directory structure.

It uses FileSvgConverter or ImageSvgConverter converter to process each SVG file in the specified directory.

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

Constructors

DirectorySvgConverter(WpfDrawingSettings)

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

Properties

DestinationDir

Gets the destination directory of the converted XAML files.

Encoder

Gets or sets a custom bitmap encoder to use in encoding the drawing to an image file.

EncoderType

Gets or set the bitmap encoder type to use in encoding the drawing to an image file.

ErrorFile

Gets the full path of the last SVG file not successfully converted.

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.

IncludeHidden

Gets or sets a value indicating whether the copy operation includes hidden directories and files.

IncludeSecurity

Gets or sets a value indicating whether the security settings of the copied file is retained.

Overwrite

Gets or sets a value indicating whether an existing file is overwritten.

Recursive

Gets or sets a value indicating whether the directory copying is recursive, that is includes the sub-directories.

SaveImage

Gets or sets a value indicating whether to save static or bitmap image output.

SourceDir

Gets the source directory of the SVG files to be converted.

WriterErrorOccurred

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

Methods

Convert(DirectoryInfo, DirectoryInfo)

Convert the SVG files in the specified source directory, saving the results in the specified destination directory.