Class
RadSvgImageConverter

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

Definition

Namespace:Telerik.Windows.Controls.Svg

Assembly:Telerik.Windows.Controls.dll

Syntax:

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

Inheritance: objectRadSvgImageSourceExtensionBaseRadSvgImageConverter

Implements: IValueConverter

Inherited Members RadSvgImageSourceExtensionBase.OverrideColorRadSvgImageSourceExtensionBase.CultureInfoRadSvgImageSourceExtensionBase.ApplicationName

Constructors

RadSvgImageConverter()

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

Declaration

cs-api-definition
public RadSvgImageConverter()

RadSvgImageConverter(Uri)

Initializes a new instance of the RadSvgImageConverter class.

Declaration

cs-api-definition
public RadSvgImageConverter(Uri baseUri)

Parameters

baseUri

Uri

Methods

Convert(object, Type, object, CultureInfo)

Converts a string value to SVG source.

Declaration

cs-api-definition
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)

Parameters

value

object

targetType

Type

parameter

object

culture

CultureInfo

Returns

object

ConvertBack(object, Type, object, CultureInfo)

Not implemented reversed conversion.

Declaration

cs-api-definition
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)

Parameters

value

object

targetType

Type

parameter

object

culture

CultureInfo

Returns

object

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.