Class RadSvgImageSourceExtension
This implements a markup extension that enables the creation of System.Windows.Media.DrawingImage from SVG sources.
Inherited Members
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.dll
Syntax
public sealed class RadSvgImageSourceExtension : RadSvgImageSourceExtensionBase
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
RadSvgImageSourceExtension()
Initializes a new instance of the RadSvgImageSourceExtension class with the default parameters.
Declaration
public RadSvgImageSourceExtension()
RadSvgImageSourceExtension(String)
Initializes a new instance of the RadSvgImageSourceExtension class with the specified SVG file path.
Declaration
public RadSvgImageSourceExtension(string svgPath)
Parameters
System.String
svgPath
|
Properties
Source
Gets or sets the SVG source file.
Declaration
public string Source { get; set; }
Property Value
System.String
A string specifying the path of the SVG source file. The default is null. |
Methods
ProvideValue(IServiceProvider)
Performs the conversion of a valid SVG source file to the System.Windows.Media.DrawingImage that is set as the value of the target property for this markup extension.
Declaration
public override object ProvideValue(IServiceProvider serviceProvider)
Parameters
System.IServiceProvider
serviceProvider
Object that can provide services for the markup extension. |
Returns
System.Object
This returns System.Windows.Media.DrawingImage if successful; otherwise, it returns null. |