Exemplo n.º 1
0
        public void Dispose()
        {
            if (Canvas != null)
            {
                Drawing_OnDetachFromCanvas(Canvas);

                Playground.Dispose();

                Canvas = null;
            }
        }
Exemplo n.º 2
0
 void Drawing_OnDetachFromCanvas(Canvas e)
 {
     e.SizeChanged -= mCanvas_SizeChanged;
     Playground.OnRemovingFromCanvas(e); // 09-16-2010 Scott
     Figures.OnRemovingFromCanvas(e);
 }
Exemplo n.º 3
0
 void Drawing_OnAttachToCanvas(Canvas e)
 {
     e.SizeChanged += mCanvas_SizeChanged;
     Playground.OnAddingToCanvas(e); // 09-16-2010 Scott
     Figures.OnAddingToCanvas(e);
 }