Class SvgImageExtension
- Namespace
- SharpVectors.Converters
- Assembly
- SharpVectors.Converters.Wpf.dll
This implements a markup extension that enables the creation of DrawingImage from SVG sources.
public sealed class SvgImageExtension : SvgImageBase
- Inheritance
-
SvgImageExtension
- Inherited Members
Remarks
The SVG source file can be:
- From the web
- From the local computer (relative or absolute paths)
- From the resources.
The rendering settings are provided as properties for customizations.
Constructors
- SvgImageExtension()
Initializes a new instance of the SvgImageExtension class with the default parameters.
- SvgImageExtension(string)
Initializes a new instance of the SvgImageExtension class with the specified SVG file path.
Properties
- Source
Gets or sets the SVG source file.
Methods
- ProvideValue(IServiceProvider)
Performs the conversion of a valid SVG source file to the DrawingImage that is set as the value of the target property for this markup extension.