Example #1
0
        /// <summary>
        /// Plays the exit animation for this page.
        /// </summary>
        public virtual void AnimateOut()
        {
            AnimateOutStarted();

            var storyBoard = new Storyboard();
            var animations = MakeExitAnimations();

            Animation.AddAnimations(storyBoard, animations, this);
            storyBoard.Begin(this);

            AnimateOutFinished();
        }
Example #2
0
        /// <summary>
        /// Plays the entry animation for this page.
        /// </summary>
        public virtual void AnimateIn()
        {
            this.Visibility = Visibility.Visible;
            AnimateInStarted();

            /* Create Storyboard consisting of all animations. */
            var storyBoard = new Storyboard();
            var animations = MakeEntryAnimations();

            Animation.AddAnimations(storyBoard, animations, this);
            storyBoard.Begin(this);

            AnimateInFinished();
        }