New to Telerik UI for WPFStart a free 30-day trial

Display Telerik.SvgIcons in RadSvgImage

Updated on Sep 15, 2025

Environment

Product Version2023.3.1115
ProductRadSvgImage for WPF

Description

How to display SVG icons from the Telerik.SvgIcons NuGet package in RadSvgImage.

Solution

  1. Add the Telerik.SvgIcons NuGet package in your application.

    WPF Telerik.SvgIcons NuGet package

  2. You can utilize the XmlSource property of RadSvgImage to display the Content property of the chosen SVG icon.

RadSvgImage declaration

XAML
    <Grid xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
        <telerik:RadSvgImage x:Name="svgImage" Width="128" Height="128"/>
    </Grid>

Setting the XmlSource property

C#
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();

            string baseSvgBody = "<svg xmlns = \"http://www.w3.org/2000/svg\">{0}</svg>";

            this.svgImage.XmlSource = string.Format(baseSvgBody, Telerik.SvgIcons.SvgIcon.ChartScatter.Content);
        }
    }

RadSvgImage displaying SVG icon from the Telerik.SvgIcons NuGet package

WPF RadSvgImage displaying SVG icon from the Telerik.SvgIcons NuGet package

In this article
EnvironmentDescriptionSolution
Not finding the help you need?
Contact Support