コード例 #1
0
ファイル: AnimatedPage.cs プロジェクト: yukiyuki/MyToolkit
        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);
        }
コード例 #2
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;
        }