public virtual void BeginStroke(Pen style) { activeStroke = new Stroke(style); Strokes.RemoveRange(Strokes.Count - undo, undo); undo = 0; Strokes.Add(activeStroke); }