C
C#2d ago
Elio

SVG Icon in a wpf App

Hi, I found SharpVectors and I wanted to know what is the best way to use SVG files for icons in a WPF app. The current solution I went through was to save all the uriSource in a ResourceDictionary and then use it that way: <svgc:SvgIcon UriSource="{StaticResource IconSettingsPath}" />
3 Replies
canton7
canton72d ago
(note that you can use inkscape to turn an svg directly into xaml) But to your question, sure that works.
Elio
ElioOP2d ago
the best way would be to convert all my svg into xaml directly ? and use path to display my svp image ?
canton7
canton72d ago
I mean, there are lots of ways that work. "Best" is very subjective

Did you find this page helpful?