Is there a way to parse a vector path geometry in UWP in code behind?

后端 未结 2 1989
猫巷女王i
猫巷女王i 2021-01-14 06:28

When rendering vector graphics across different platforms, SVG and the SVG path format works really great. But at the moment its my challenge to realize this on the Universa

2条回答
  •  有刺的猬
    2021-01-14 07:06

    Use XamlBindingHelper :

    _path.Data = (Geometry)XamlBindingHelper.ConvertValue(typeof(Geometry), "M 0,0 L 23,0 L 31,16 L 23,31 L 0,31 Z");
    

提交回复
热议问题