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

                Playground.Dispose();

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