예제 #1
0
 private static async Task SetAnimatorCoreAsync(Image image, Animator animator)
 {
     SetAnimator(image, animator);
     animator.Error += AnimatorError;
     image.Source = animator.Bitmap;
     if (GetAutoStart(image))
         animator.Play();
     else
         await animator.ShowFirstFrameAsync();
 }
 private static void SetAnimatorCore(Image image, Animator animator)
 {
     SetAnimator(image, animator);
     image.Source = animator.Bitmap;
     if (GetAutoStart(image))
         animator.Play();
     else
         animator.ShowFirstFrame();
 }
예제 #3
0
 private void SetAnimatorCore(Animator animator)
 {
     _animator = animator;
     _image.Source = animator.Bitmap;
     if (_autoStart)
         animator.Play();
     else
         animator.ShowFirstFrame();
 }
예제 #4
0
 private static void SetAnimatorCore(Image image, Animator animator)
 {
     SetAnimator(image, animator);
     image.Source = animator.Bitmap;
     if (GetAutoStart(image))
         animator.Play();
     else
         animator.CurrentFrameIndex = 0;
 }