wpf虚线画刷

 //虚线
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;
posted @ 2021-06-25 18:14  Hey,Coder!  阅读(173)  评论(0编辑  收藏  举报