ClassRadSvgImageConverter
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:
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Svg")]
public sealed class RadSvgImageConverter : RadSvgImageSourceExtensionBase, IValueConverter
Inheritance: objectRadSvgImageSourceExtensionBaseRadSvgImageConverter
Implements:
Inherited Members
Constructors
RadSvgImageConverter()
Initializes a new instance of the RadSvgImageConverter class with the default parameters.
Declaration
public RadSvgImageConverter()
RadSvgImageConverter(Uri)
Initializes a new instance of the RadSvgImageConverter class.
Declaration
public RadSvgImageConverter(Uri baseUri)
Parameters
baseUri
Uri
Methods
Convert(object, Type, object, CultureInfo)
Converts a string value to SVG source.
Declaration
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
value
targetType
parameter
culture
Returns
ConvertBack(object, Type, object, CultureInfo)
Not implemented reversed conversion.
Declaration
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
value
targetType
parameter
culture
Returns
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.