Reputation: 1918
I am new to WPF
C#.Net
and got a project to build UI using SVG
in wpf
,
i have been searching for a while and couldn't find an answer.
so my question is:
is it possible to work with SVG(scalable vector graphics)
in WPF
?
if so,then How?
any help would be appreciated .Thanks!
Upvotes: 0
Views: 3883
Reputation: 1918
Since there's no direct support for Svg in Wpf application. I have used SharpVector Library.
C# library for converting SVG to WPF and viewing SVG files in WPF applications directly
Usage:
namespace: xmlns:svg="http://sharpvectors.codeplex.com/svgc/"
<svg:SvgCanvas Name="svgCanvas" Source="yourPath.svg"/>
Upvotes: 1
Reputation: 2875
As it is, no there is no support for SVG.
But have a look at this question, where they explain how to convert it: WPF What is the correct way of using SVG files as icons in WPF
And here as well: https://social.msdn.microsoft.com/Forums/vstudio/en-US/22978b1c-be4d-475d-8a57-371f324b4697/does-wpf-support-svg?forum=wpf
Upvotes: 1