示例#1
0
 public void PauseAnimation()
 {
     AnimationPaused = true;
     Application.Current.Dispatcher.Invoke(() =>
     {
         PlayAnimationCommand.NotifyOfCanExecuteChange();
         PauseAnimationCommand.NotifyOfCanExecuteChange();
     });
 }
示例#2
0
 private void resumeAnimation()
 {
     AnimationPaused  = false;
     AnimationResumed = true;
     Application.Current.Dispatcher.Invoke(() =>
     {
         PlayAnimationCommand.NotifyOfCanExecuteChange();
         PauseAnimationCommand.NotifyOfCanExecuteChange();
     });
 }