Joseph Wambura
Joseph Wambura

Reputation: 3406

Why is SharpVectors not showing colored SVGs in WPF .Net Core but shows colored in WPF .Net Framework?

et

The first Window is WPF Framework, while the Window in the background is of .Net Core. I use SharpVectors to load SVG files to images. I am having issue coz the .Net Core won't show coloured SVG files.

...
xmlns:svgc="http://sharpvectors.codeplex.com/svgc/"
...
<Image Source="{svgc:SvgImage ../Resources/sample1.svg}" Stretch="Uniform" />

Upvotes: 0

Views: 1157

Answers (1)

Joseph Wambura
Joseph Wambura

Reputation: 3406

I was using

<PackageReference Include="SharpVectors" Version="1.0.0" />

instead of

<PackageReference Include="SharpVectors.Reloaded" Version="1.6.0" />

When I upgraded and used the right library, it worked well. Colors.

https://github.com/ElinamLLC/SharpVectors/issues/136

Upvotes: 1

Related Questions