skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Test Studio Dev Edition Telerik JustMock

    CMS

    Sitefinity

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class RadSvgImage

Control for displaying SVG images.

Inheritance
System.Object
RadSvgImage
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.dll

Syntax

[TelerikToolboxCategory("Common")]
public class RadSvgImage : Control, IUriContext

Constructors

RadSvgImage()

Initializes a new instance of the RadSvgImage class.

Declaration
public 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 Nullable<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 Nullable<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

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.