我需要在Grid Cell中绘制虚线边框。我用矩形来计算它,但是我需要只显示矩形的底部边框,没有左边,右边或顶部!!
Rectangle r = new Rectangle();
r.StrokeThickness = 1;
r.Stroke = Brushes.Black;
r.StrokeDashArray = new DoubleCollection() { 5 };
r.StrokeDashCap = PenLineCap.Flat;
谢谢!