Is there a way to render SVG in Windows Forms?

Viewed 25265

I am working with a library that renders part of its state as an SVG document.

I would like to render this in either a Windows Forms or a WPF environment. Is there currently a way to do this?

If not, I could modify the library to use a more general rendering strategy, and then add an XML adapter to restore the original functionality, but this is not my preferred strategy.

3 Answers

You could use Forms.WebBrowser with

WebBrowser.Url = new Uri($"file://{pathSvg}");

Related