This is a migrated thread and some comments may be shown as answers.

How to use SVG icon in RibbonButton

1 Answer 1319 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
Guang
Top achievements
Rank 1
Iron
Guang asked on 26 Jan 2021, 03:25 AM

Hello:

We have several SVG icons designed by company, but we cannot find a way to use them on Robbon buttons, 

Is there any solution that we can use .svg for button icon?

Thanks!

 

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 26 Jan 2021, 01:29 PM

Hello Guang,

The WPF framework doesn't support visualization of .svg content. The framework rendering engine is vector-based, but the .svg format is not integrated in it. To show .svg you will need to parse it to WPF geometries and then display it in a Path control. Additionally, we have a feature request to introduce a tool or a component that automatically does this. You can find it logged in our feedback portal.

An alternative solution is to use image formats like .png or .jpeg instead of .svg. Or also you can use the icons in our glyph font. Other glyph based fonts are supported too using the RadGlyph control.

Regards,
Martin Ivanov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
RibbonView and RibbonWindow
Asked by
Guang
Top achievements
Rank 1
Iron
Answers by
Martin Ivanov
Telerik team
Share this question
or