private async Task changeAnimationIfNeeded(IAnimation animation)
        {
            if (animation == _obj.Animation)
            {
                return;
            }
            await Task.Delay(1);

            _obj.StartAnimation(animation);
            await Task.Delay(1);
        }
Esempio n. 2
0
 public void StartAnimation(IAnimation animation)
 {
     _animationContainer.StartAnimation(animation);
 }
Esempio n. 3
0
 private void onMouseEnter(object sender, MousePositionEventArgs e)
 {
     _animation.StartAnimation(Checked ? HoverCheckedAnimation : HoverNotCheckedAnimation);
 }
Esempio n. 4
0
 private void onMouseEnter(object sender, MousePositionEventArgs e)
 {
     _animation.StartAnimation(HoverAnimation);
 }