ClassRadSvgImageSourceExtension
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:
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Svg")]
public sealed class RadSvgImageSourceExtension : RadSvgImageSourceExtensionBase
Inheritance: objectRadSvgImageSourceExtensionBaseRadSvgImageSourceExtension
Inherited Members
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
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "svg")]
public RadSvgImageSourceExtension(string svgPath)
Parameters
svgPath
Properties
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
public override object ProvideValue(IServiceProvider serviceProvider)
Parameters
serviceProvider
Object that can provide services for the markup extension.
Returns
This returns DrawingImage if successful; otherwise, it returns null.