示例#1
0
 private void InvalidateTimer()
 {
     if (!base.DesignMode && DoneCreation)
     {
         if (_IsAnimated)
         {
             ThemeShare.AddAnimationCallback(DoAnimation);
         }
         else
         {
             ThemeShare.RemoveAnimationCallback(DoAnimation);
         }
     }
 }
示例#2
0
 protected override void OnHandleDestroyed(EventArgs e)
 {
     ThemeShare.RemoveAnimationCallback(DoAnimation);
     base.OnHandleDestroyed(e);
 }