public override void OnRender(DrawingContext drawingContext) { Geometry.Clear(); using (var context = Geometry.Open()) { Render(context); } drawingContext.DrawGeometry(Background?.GetBrush(), Pen?.GetPen(), Geometry); }