/// <summary>Cleans up the SvgDrawContext by removing the current viewport and by popping the current canvas.</summary> /// <param name="context">context to clean</param> private void CleanUp(SvgDrawContext context) { if (GetParent() != null) { context.RemoveCurrentViewPort(); } context.PopCanvas(); }