Questions tagged [sharpvectors]

SharpVectors is an opensource C# library for parsing, converting and viewing SVG files in WPF and Windows Forms applications.

The library (for the .NET 4.0 or later) is available on Github SharpVectors.

10 questions
4
votes
1 answer

SvgViewbox doesn't show tooltip on mouse over

I'm using SharpVectors library in my WPF app to display SVG icons instead of the traditional PNGs. I'm using the following basic pattern throughout my XAML:
3
votes
0 answers

WPF assembly called through COM interop produces "System.Windows.Markup.XamlParseException"?

I have a C# WPF class library which uses (references) SharpVectors. This class library exports a function to COM which creates & shows the WPF window. The COM client is VB6 although I'm not sure that matters. When it runs I get…
StayOnTarget
  • 11,743
  • 10
  • 52
  • 81
1
vote
2 answers

Storing an (abstract) ImageSource object in a resource dictionary?

I have a number of images in my project which I would like to add to a resource dictionary so that they are only loaded once & can be reused. The image files are compiled into the assembly as resource files. The image files are SVG format which are…
StayOnTarget
  • 11,743
  • 10
  • 52
  • 81
0
votes
1 answer

How to get SharpVector running in external XAML-File

i am trying to include XAML-Files(some styles) as Resources in my project. But i want them to be interchangable. So i dont want the Build Action "Page" but simply copy them to the output-folder and use the styles from there. I am using SharpVectors…
0
votes
1 answer

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

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…
Joseph Wambura
  • 2,732
  • 2
  • 21
  • 24
0
votes
1 answer

Specify a design-time image source?

I am using SharpVectors to display SVG images in my WPF project. One way to do this is to specify the SvgImage markup extension for the image source, such as: This works great at runtime.…
StayOnTarget
  • 11,743
  • 10
  • 52
  • 81
0
votes
2 answers

Using an SVG as a Ribbon SmallImageSource, with SharpVectors?

I've successfully been able to use a static .svg file as an image in WPF by following the guidance in another question. The basic approach there is to use the SharpVectors library, and do: In place of an…
StayOnTarget
  • 11,743
  • 10
  • 52
  • 81
0
votes
2 answers

How to swap SVG Fill Color on MouseOver?

I'm using SharpVectors to embed svg file in my XAML. Here is my Button ControlTemplate:
Rowandish
  • 2,655
  • 3
  • 31
  • 52
-1
votes
1 answer

Drawing an image from svg url in wpf C#

This is the URL with image-https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/acid.svg What I have tried Sample 1- -I am using SharpVectors package public void DrawImage() { Image svgImage = new Image(); WpfDrawingSettings…
-1
votes
2 answers

Displaying bound list of svg files

In my WPF application I have a grid with a fixed set of SVG Images (I use SharpVectors library)
amplifier
  • 1,793
  • 1
  • 21
  • 55