Exemple #1
0
        private static AnimationsId GetFadeAnimationsId(IPageAnimation animation, bool isPush)
        {
            switch (animation.Subtype)
            {
            case AnimationSubtype.FromLeft:
                return(isPush ? AnimationsId.Create(animation.BounceEffect ? Resource.Animator.enter_scale_from_left_short_bounce : Resource.Animator.enter_scale_from_left_short, Resource.Animator.empty_Animation_short) :
                       AnimationsId.Create(Resource.Animator.empty_Animation_short, Resource.Animator.exit_scale_from_left_short));

            case AnimationSubtype.FromRight:
                return(isPush ? AnimationsId.Create(animation.BounceEffect ? Resource.Animator.enter_scale_from_right_short_bounce : Resource.Animator.enter_scale_from_right_short, Resource.Animator.empty_Animation_short) :
                       AnimationsId.Create(Resource.Animator.empty_Animation_short, Resource.Animator.exit_scale_from_right_short));

            case AnimationSubtype.FromTop:
                return(isPush ? AnimationsId.Create(animation.BounceEffect ? Resource.Animator.enter_scale_from_top_short_bounce : Resource.Animator.enter_scale_from_top_short, Resource.Animator.empty_Animation_short) :
                       AnimationsId.Create(Resource.Animator.empty_Animation_short, Resource.Animator.exit_scale_from_top_short));

            case AnimationSubtype.FromBottom:
                return(isPush ? AnimationsId.Create(animation.BounceEffect ? Resource.Animator.enter_scale_from_bottom_short_bounce : Resource.Animator.enter_scale_from_bottom_short, Resource.Animator.empty_Animation_short) :
                       AnimationsId.Create(Resource.Animator.empty_Animation_short, Resource.Animator.exit_scale_from_bottom_short));

            default:
                return(isPush ? AnimationsId.Create(animation.BounceEffect ? Resource.Animator.enter_scale_short_bounce : Resource.Animator.enter_scale_short, Resource.Animator.empty_Animation_short) :
                       AnimationsId.Create(Resource.Animator.empty_Animation_short, Resource.Animator.exit_scale_short));
            }
        }
Exemple #2
0
        private static AnimationsId GetRotateAnimationsId(IPageAnimation animation, bool isPush)
        {
            switch (animation.Subtype)
            {
            case AnimationSubtype.FromRight:
                return(isPush ? AnimationsId.Create(animation.BounceEffect ? Resource.Animator.enter_rotate_from_right_bounce : Resource.Animator.enter_rotate_from_right, Resource.Animator.empty_Animation) :
                       AnimationsId.Create(Resource.Animator.empty_Animation, Resource.Animator.exit_rotate_to_right));

            case AnimationSubtype.FromTop:
                return(isPush ? AnimationsId.Create(animation.BounceEffect ? Resource.Animator.enter_rotate_from_top_bounce : Resource.Animator.enter_rotate_from_top, Resource.Animator.empty_Animation) :
                       AnimationsId.Create(Resource.Animator.empty_Animation, Resource.Animator.exit_rotate_to_top));

            case AnimationSubtype.FromBottom:
                return(isPush ? AnimationsId.Create(animation.BounceEffect ? Resource.Animator.enter_rotate_from_bottom_bounce : Resource.Animator.enter_rotate_from_bottom, Resource.Animator.empty_Animation) :
                       AnimationsId.Create(Resource.Animator.empty_Animation, Resource.Animator.exit_rotate_to_bottom));

            case AnimationSubtype.FromLeft:
                return(isPush ? AnimationsId.Create(animation.BounceEffect ? Resource.Animator.enter_rotate_from_left_bounce : Resource.Animator.enter_rotate_from_left, Resource.Animator.empty_Animation) :
                       AnimationsId.Create(Resource.Animator.empty_Animation, Resource.Animator.exit_rotate_to_left));

            default:
                return(isPush ? AnimationsId.Create(animation.BounceEffect ? Resource.Animator.enter_rotate_bounce : Resource.Animator.enter_rotate, Resource.Animator.empty_Animation) :
                       AnimationsId.Create(Resource.Animator.empty_Animation, Resource.Animator.exit_rotate));
            }
        }
Exemple #3
0
        private static AnimationsId GetLandingAnimationsId(IPageAnimation animation, bool isPush)
        {
            switch (animation.Subtype)
            {
            case AnimationSubtype.FromLeft:
                return(isPush ? AnimationsId.Create(animation.BounceEffect ? Resource.Animator.enter_landing_from_left_long_bounce : Resource.Animator.enter_landing_from_left_long, Resource.Animator.empty_Animation_long) :
                       AnimationsId.Create(Resource.Animator.empty_Animation_long, Resource.Animator.exit_landing_from_left_long));

            case AnimationSubtype.FromRight:
                return(isPush ? AnimationsId.Create(animation.BounceEffect ? Resource.Animator.enter_landing_from_right_long_bounce : Resource.Animator.enter_landing_from_right_long, Resource.Animator.empty_Animation_long) :
                       AnimationsId.Create(Resource.Animator.empty_Animation_long, Resource.Animator.exit_landing_from_right_long));

            case AnimationSubtype.FromTop:
                return(isPush ? AnimationsId.Create(animation.BounceEffect ? Resource.Animator.enter_landing_from_top_long_bounce : Resource.Animator.enter_landing_from_top_long, Resource.Animator.empty_Animation_long) :
                       AnimationsId.Create(Resource.Animator.empty_Animation_long, Resource.Animator.exit_landing_from_top_long));

            case AnimationSubtype.FromBottom:
                return(isPush ? AnimationsId.Create(animation.BounceEffect ? Resource.Animator.enter_landing_from_bottom_long_bounce : Resource.Animator.enter_landing_from_bottom_long, Resource.Animator.empty_Animation_long) :
                       AnimationsId.Create(Resource.Animator.empty_Animation_long, Resource.Animator.exit_landing_from_bottom_long));

            default:
                return(isPush ? AnimationsId.Create(animation.BounceEffect ? Resource.Animator.enter_landing_long_bounce : Resource.Animator.enter_landing_long, Resource.Animator.empty_Animation_long) :
                       AnimationsId.Create(Resource.Animator.empty_Animation_long, Resource.Animator.exit_landing_long));
            }
        }
Exemple #4
0
        private static AnimationsId GetPushAnimationsId(IPageAnimation animation, bool isPush)
        {
            switch (animation.Subtype)
            {
            case AnimationSubtype.FromRight:
                if (animation.BounceEffect && isPush)
                {
                    return(AnimationsId.Create(Resource.Animator.enter_from_right_short_bounce, Resource.Animator.exit_to_left_short_bounce));
                }
                return(isPush ? AnimationsId.Create(Resource.Animator.enter_from_right_short, Resource.Animator.exit_to_left_short) :
                       AnimationsId.Create(Resource.Animator.enter_from_left_short, Resource.Animator.exit_to_right_short));

            case AnimationSubtype.FromTop:
                if (animation.BounceEffect && isPush)
                {
                    return(AnimationsId.Create(Resource.Animator.enter_from_top_short_bounce, Resource.Animator.exit_to_bottom_short_bounce));
                }
                return(isPush ? AnimationsId.Create(Resource.Animator.enter_from_top_short, Resource.Animator.exit_to_bottom_short) :
                       AnimationsId.Create(Resource.Animator.enter_from_bottom_short, Resource.Animator.exit_to_top_short));

            case AnimationSubtype.FromBottom:
                if (animation.BounceEffect && isPush)
                {
                    return(AnimationsId.Create(Resource.Animator.enter_from_bottom_short_bounce, Resource.Animator.exit_to_top_short_bounce));
                }
                return(isPush ? AnimationsId.Create(Resource.Animator.enter_from_bottom_short, Resource.Animator.exit_to_top_short) :
                       AnimationsId.Create(Resource.Animator.enter_from_top_short, Resource.Animator.exit_to_bottom_short));

            default:
                if (animation.BounceEffect && isPush)
                {
                    return(AnimationsId.Create(Resource.Animator.enter_from_left_short_bounce, Resource.Animator.exit_to_right_short_bounce));
                }
                return(isPush ? AnimationsId.Create(Resource.Animator.enter_from_left_short, Resource.Animator.exit_to_right_short) :
                       AnimationsId.Create(Resource.Animator.enter_from_right_short, Resource.Animator.exit_to_left_short));
            }
        }