Ejemplo n.º 1
0
 protected override void OnDisconnected()
 {
     if (CompositionBrush != null)
     {
         CompositionBrush.Dispose();
         CompositionBrush = null;
         ColorImplicitAnimations.Dispose();
         ColorImplicitAnimations = null;
         ColorAnimation.Dispose();
         ColorAnimation = null;
     }
 }
        protected override void OnDisconnected()
        {
            if (CompositionBrush != null)
            {
                IsConnected         = false;
                TransitionCompleted = null;

                ColorAnimation.Dispose();
                ColorAnimation = null;

                CompositionBrush.Dispose();
                CompositionBrush = null;
            }
        }