wpf虚线画刷

时间:2021-06-28 17:43:24   收藏:0   阅读:0
 //虚线
DoubleCollection dc = new DoubleCollection();
dc.Add(2);
DashStyle dashstyle = new DashStyle();
dashstyle.Dashes = dc;

Pen renderPen = new Pen(new SolidColorBrush(Colors.Navy), 1.5);
renderPen.DashStyle = dashstyle;
renderPen.DashCap = PenLineCap.Round;
评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!