Class RadSvgImage
Control for displaying SVG images.
Inheritance
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.dll
Syntax
[TelerikToolboxCategory("Common")]
public class RadSvgImage : Control, IUriContext
Constructors
RadSvgImage()
Fields
CustomBrushesProperty
Identifies the CustomBrushes dependency property.
Declaration
public static readonly DependencyProperty CustomBrushesProperty
Field Value
System.Windows.DependencyProperty
|
ImageSourceProperty
Identifies the ImageSource dependency property.
Declaration
public static readonly DependencyProperty ImageSourceProperty
Field Value
System.Windows.DependencyProperty
|
OverrideColorProperty
Identifies the OverrideColor dependency property.
Declaration
public static readonly DependencyProperty OverrideColorProperty
Field Value
System.Windows.DependencyProperty
|
OverrideStrokeWidthProperty
Identifies the OverrideStrokeWidth dependency property.
Declaration
public static readonly DependencyProperty OverrideStrokeWidthProperty
Field Value
System.Windows.DependencyProperty
|
SizeTypeProperty
Identifies the SizeType dependency property.
Declaration
public static readonly DependencyProperty SizeTypeProperty
Field Value
System.Windows.DependencyProperty
|
UriSourceProperty
Identifies the UriSource dependency property.
Declaration
public static readonly DependencyProperty UriSourceProperty
Field Value
System.Windows.DependencyProperty
|
UseAnimationsProperty
Identifies the UseAnimations dependency property.
Declaration
public static readonly DependencyProperty UseAnimationsProperty
Field Value
System.Windows.DependencyProperty
|
XmlSourceProperty
Identifies the XmlSource dependency property.
Declaration
public static readonly DependencyProperty XmlSourceProperty
Field Value
System.Windows.DependencyProperty
|
Properties
BaseUri
Gets or sets the base URI of the current application context.
Declaration
public Uri BaseUri { get; set; }
Property Value
System.Uri
The base URI of the application context. |
CustomBrushes
Gets or sets the collection of custom brushes.
Declaration
public Dictionary<string, Brush> CustomBrushes { get; set; }
Property Value
System.Collections.Generic.Dictionary<System.String, System.Windows.Media.Brush>
|
ImageSource
Gets or sets a Drawing that can be used for building the SVG image.
Declaration
public Drawing ImageSource { get; set; }
Property Value
System.Windows.Media.Drawing
|
OverrideColor
Gets or sets a value which is used to replace the fill color of this SVG image.
Declaration
public Color? OverrideColor { get; set; }
Property Value
System.Nullable<System.Windows.Media.Color>
|
OverrideStrokeWidth
Gets or sets a value which is used to replace the stroke width of this SVG image.
Declaration
public double? OverrideStrokeWidth { get; set; }
Property Value
System.Nullable<System.Double>
|
SizeType
Gets or sets the size type of the image.
Declaration
public SizeType SizeType { get; set; }
Property Value
SizeType
|
UriSource
Gets or sets the path to the SVG file to load into this image instance.
Declaration
public Uri UriSource { get; set; }
Property Value
System.Uri
A System.Uri specifying the path to the SVG source file. The file can be located on a computer, network or assembly resources. |
UseAnimations
Gets or sets a value indicating whether the animations are used on this SVG image instance.
Declaration
public bool UseAnimations { get; set; }
Property Value
System.Boolean
|
XmlSource
Gets or sets a value which is a XML-based string used as a source for this SVG image instance. This property is set only by the user and is not set internally by the control.
Declaration
public string XmlSource { get; set; }
Property Value
System.String
|
Methods
ArrangeOverride(Size)
Declaration
protected override Size ArrangeOverride(Size arrangeBounds)
Parameters
System.Windows.Size
arrangeBounds
|
Returns
System.Windows.Size
|
MeasureOverride(Size)
Declaration
protected override Size MeasureOverride(Size constraint)
Parameters
System.Windows.Size
constraint
|
Returns
System.Windows.Size
|
OnCreateAutomationPeer()
Creates a RadSvgImageAutomationPeer.
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
System.Windows.Automation.Peers.AutomationPeer
|
OnInitialized(EventArgs)
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
System.EventArgs
e
|
OnRender(DrawingContext)
Declaration
protected override void OnRender(DrawingContext drawingContext)
Parameters
System.Windows.Media.DrawingContext
drawingContext
|
OnRenderSizeChanged(SizeChangedInfo)
Declaration
protected override void OnRenderSizeChanged(SizeChangedInfo sizeInfo)
Parameters
System.Windows.SizeChangedInfo
sizeInfo
|