Class
RadSvgImageSourceExtension

This implements a markup extension that enables the creation of DrawingImage from SVG sources.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.dll

Syntax:

cs-api-definition
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Svg")]
public sealed class RadSvgImageSourceExtension : RadSvgImageSourceExtensionBase

Inheritance: objectRadSvgImageSourceExtensionBaseRadSvgImageSourceExtension

Inherited Members RadSvgImageSourceExtensionBase.OverrideColorRadSvgImageSourceExtensionBase.CultureInfoRadSvgImageSourceExtensionBase.ApplicationName

Constructors

RadSvgImageSourceExtension()

Initializes a new instance of the RadSvgImageSourceExtension class with the default parameters.

Declaration

cs-api-definition
public RadSvgImageSourceExtension()

RadSvgImageSourceExtension(string)

Initializes a new instance of the RadSvgImageSourceExtension class with the specified SVG file path.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "svg")]
public RadSvgImageSourceExtension(string svgPath)

Parameters

svgPath

string

Properties

Source

Gets or sets the SVG source file.

Declaration

cs-api-definition
public string Source { get; set; }

Property Value

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 DrawingImage that is set as the value of the target property for this markup extension.

Declaration

cs-api-definition
public override object ProvideValue(IServiceProvider serviceProvider)

Parameters

serviceProvider

IServiceProvider

Object that can provide services for the markup extension.

Returns

object

This returns DrawingImage if successful; otherwise, it returns null.