Importing WMF (Windows Metafile) or any other vect

2019-05-21 06:14发布

Is it possible to import WMF (Windows Metafile) or any other vector based file into a silverlight project?

4条回答
仙女界的扛把子
2楼-- · 2019-05-21 06:50

I don't know of a direct way, but I've definitely transformed SVG into XAML successfully before. See this brief guide.

查看更多
SAY GOODBYE
3楼-- · 2019-05-21 06:56

You may want to have a look at free Silverlight Contrib project at codeplex. It comes with control to display WMF and EMF files.

查看更多
贼婆χ
4楼-- · 2019-05-21 07:00

Inkscape can import wmf and export xaml: http://www.inkscape.org.

查看更多
在下西门庆
5楼-- · 2019-05-21 07:06

You can use Paste2Xaml to convert WMF/EMF to XAML

http://www.wpf-graphics.com/Paste2Xaml.aspx

And (from the same source) ViewerSvg to convert SVG to XAML

http://www.wpf-graphics.com/ViewerSvg.aspx

Also, for SVG, InkScape has a XAML export feature and there's a XAML export plugin for Adobe Illustrator somewhere, for WMF, Microsoft Expression Graphics Designer (what a short name) is supposed to be able to import WMF and export XAML, but I haven't used those myself.

查看更多
登录 后发表回答