I need to draw dashed border in Grid Cell. I figured it out using Rectangle, but I need to show only rectangle’s bottom border without left, right, or top !!
Rectangle r = new Rectangle();
r.StrokeThickness = 1;
r.Stroke = Brushes.Black;
r.StrokeDashArray = new DoubleCollection() { 5 };
r.StrokeDashCap = PenLineCap.Flat;
Thanks!!
Looks like you can do it with a Rectangle, if you set the Height to 1 and then vertically align it to the bottom like so: