问题
I have an SVG file that I need to display in a .NET Windows Forms application. This is a common problem. However, the WebBrowser control doesn't work because IE's engine doesn't render my SVG correctly (specifically it ignores the preserve whitespace directive). I looked into Chrome and Firefox controls and they worked great but they are 32-bit only and other references require the project to be compiled in 64-bit mode. Surely there must be some option for displaying correctly rendered SVG in 64-bit mode?
回答1:
I have tried SVG.NET with WinForms and it works excellent.
回答2:
Try the SVG Rendering Engine. It should work in 64-bit mode since it's fully managed code.
Another option is SharpVectors.
来源:https://stackoverflow.com/questions/11463862/how-can-i-display-an-svg-file-in-a-64-bit-net-application