Exemple #1
0
        protected virtual AnimatorHelperBase GetAnimation(AnimationType animationType)
        {
            AnimatorHelperBase animation;

            switch (animationType)
            {
            case AnimationType.NavigateBackwardIn:
                animation = new TurnstileBackwardInAnimator();
                break;

            case AnimationType.NavigateBackwardOut:
                animation = new TurnstileBackwardOutAnimator();
                break;

            case AnimationType.NavigateForwardIn:
                animation = new TurnstileForwardInAnimator();
                break;

            default:
                animation = new TurnstileForwardOutAnimator();
                break;
            }
            animation.RootElement = AnimationContext;
            return(animation);
        }
        protected virtual AnimatorHelperBase GetAnimation(AnimationType animationType)
        {
            AnimatorHelperBase animation;
			switch (animationType)
            {
                case AnimationType.NavigateBackwardIn:
                    animation = new TurnstileBackwardInAnimator();
                    break;

                case AnimationType.NavigateBackwardOut:
                    animation = new TurnstileBackwardOutAnimator();
                    break;

                case AnimationType.NavigateForwardIn:
                    animation = new TurnstileForwardInAnimator();
                    break;

                default:
                    animation = new TurnstileForwardOutAnimator();
                    break;
            }
			animation.RootElement = AnimationContext;
            return animation;
        }