Rectangle myRect = Draw.Rectangle(this, "Rectangle" + CurrentBar, false, StartDateTime, High, EndDateTime, Low, Brushes.Silver, Brushes.Silver, 20); myRect.OutlineStroke = new Stroke(Brushes.Silver, 1);
It's this line that's causing the issue: myRect.OutlineStroke = new Stroke(Brushes.Silver, 1);
removing it solves the problem. What should I have done here?

Comment