Class RadSvgImageConverter
This implements a markup extension that enables the creation of System.Windows.Media.DrawingImage from SVG sources.
Inherited Members
Namespace: Telerik.Windows.Controls.Svg
Assembly: Telerik.Windows.Controls.dll
Syntax
public sealed class RadSvgImageConverter : RadSvgImageSourceExtensionBase, IValueConverter
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
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
System.Uri
baseUri
|
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
System.Object
value
|
System.Type
targetType
|
System.Object
parameter
|
System.Globalization.CultureInfo
culture
|
Returns
System.Object
|
ConvertBack(Object, Type, Object, CultureInfo)
Not implemented reversed conversion.
Declaration
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
System.Object
value
|
System.Type
targetType
|
System.Object
parameter
|
System.Globalization.CultureInfo
culture
|
Returns
System.Object
|
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. |