Beispiel #1
0
 /// <summary>
 /// 移除动画
 /// </summary>
 /// <param name="animation">动画对象</param>
 void RemoveAnimation(Animation animation)
 {
     this.Children.Remove(animation);
     animation.Dispose();
 }
Beispiel #2
0
 /// <summary>
 /// 移除容器中的动画
 /// </summary>
 /// <param name="animation">动画对象</param>
 void RemoveContainerAnimation(Animation animation)
 {
     animation.Dispose();
     container.Children.Remove(animation);
     animation = null;
 }