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(); }
private void SetAnimatorCore(Animator animator) { _animator = animator; _image.Source = animator.Bitmap; if (_autoStart) animator.Play(); else animator.ShowFirstFrame(); }
private static void SetAnimatorCore(Image image, Animator animator) { SetAnimator(image, animator); image.Source = animator.Bitmap; if (GetAutoStart(image)) animator.Play(); else animator.CurrentFrameIndex = 0; }