public GraphicsCanvasRenderer(IGraphicsElementContainer container, Action onInvalidate)
        {
            children            = new GraphicsElementCollection(container);
            onInvalidateSurface = onInvalidate;

            renderSuspendCount = 0;
            renderPending      = false;
        }
 public GraphicsElementCollection(IGraphicsElementContainer elementContainer)
 {
     items     = new List <GraphicsElement>();
     container = elementContainer;
 }