最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

add "non path" objects from svg to xaml - Stack Overflow

programmeradmin2浏览0评论

I have a svg file containing:

<?xml version="1.0" encoding="UTF-8"?>
<svg id="Layer_2" data-name="Layer 2" xmlns="; viewBox="0 0 119.46 112.43">
  <defs>
    <style>
      .cls-1 {
        fill: none;
        stroke: #231f20;
        stroke-miterlimit: 10;
        stroke-width: 2px;
      }

      .cls-2 {
        fill: #231f20;
      }
    </style>
  </defs>
  <g>
    <path class="cls-1" d="M33.63,83.82c-3.1-28.23,15.53-47.08-11.96-58.96"/>
    <path class="cls-2" d="M36.19,95.62c.92-5.99,3.02-13.61,5.87-18.66l-8.62,5.29-10.01-1.45c4.61,3.51,9.55,9.69,12.76,14.83Z"/>
  </g>
  <g>
    <line class="cls-1" x1="52.23" y1="44.42" x2="52.23" y2="68.01"/>
    <line class="cls-1" x1="40.43" y1="56.29" x2="64.03" y2="56.29"/>
  </g>
  <g>
     <polygon class="cls-2" points="50.85 7.91 50.85 106.21 15.25 57.06 50.85 7.91"/>
     <polygon class="cls-2" points="86.44 7.91 86.44 106.21 50.85 57.06 86.44 7.91"/>
  </g>
</svg>

How can I convert those elements into XAML elements ? For one Path, I found examples, but for this more complicated exemple, I did not.

发布评论

评论列表(0)

  1. 暂无评论