110,567
社区成员
发帖
与我相关
我的任务
分享
System.Windows.Shapes.Path myPath = new System.Windows.Shapes.Path();
//设置边颜色
myPath.Stroke = new SolidColorBrush(mediaColor);
myPath.StrokeThickness = 1;
//设置图形
myPath.Data = myPathGeometry;
//设置背景图片
myPath.Fill = myImageBrush
//myPath.Fill = new SolidColorBrush(Colors.Red);