Importing WMF (Windows Metafile) or any other vector file into a silverlight project

大憨熊 提交于 2019-12-22 19:32:28

问题


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


回答1:


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




回答2:


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.




回答3:


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




回答4:


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



来源:https://stackoverflow.com/questions/855011/importing-wmf-windows-metafile-or-any-other-vector-file-into-a-silverlight-pro

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!