WPF Path.Data 后台代码赋值

2021-03-26 08:25

阅读:477

标签:arp   pre   data   ring   geo   geometry   wpf   etc   tco   

Path path = new Path();
string sData = "M 250,40 L200,20 L200,60 Z";
var converter = TypeDescriptor.GetConverter(typeof(Geometry));
path.Data = (Geometry)converter.ConvertFrom(sData);

  

WPF Path.Data 后台代码赋值

标签:arp   pre   data   ring   geo   geometry   wpf   etc   tco   

原文地址:https://www.cnblogs.com/lonelyxmas/p/9384685.html


评论


亲,登录后才可以留言!