Convert SVG to XAML

丶灬走出姿态 提交于 2019-12-01 01:40:25

问题


I tried InkScape & XPS method, but it doesn't give me correct XAML.

Can anyone please convert this SVG to WinRT compatible XAML ?


回答1:


Take a look at this and see if it works: https://gist.github.com/timheuer/6443390

Method (yes, superhack):

  • Use Inkscape to save as PDF
  • Rename the Filename extension from PDF to AI
  • Use Expression Design to open AI document
  • Export to Silverlight Canvas



回答2:


Using Inkscape 0.91 it's possible to open an SVG file and directly save as XAML.

Select Microsoft XAML file as the file type:




回答3:


I'm not able to comment on the related answer, but I found it even easier to just open the SVG in Inkscape, copy and then paste it on Expression Design. Then select Copy to XAML (or Ctrl + Shift + C).



来源:https://stackoverflow.com/questions/18624070/convert-svg-to-xaml

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