Exemple #1
0
        /// <summary>
        /// Implements the animation for when the toast is appearing.
        /// </summary>
        /// <param name="startPoint">Start point of the animation.</param>
        /// <param name="endPoint">End point of the animation.</param>
        protected virtual void RunAppearanceAnimation(Point startPoint, Point endPoint)
        {
            // Store the animation points
            animationStartingPoint = startPoint;
            animationEndingPoint   = endPoint;

            // create a storyboard to slide the toast into position
            currentStoryboard = ToastUtility.SlideIn(this, startPoint, endPoint,
                                                     AppearingAnimation_Completed);
        }
Exemple #2
0
 /// <summary>
 /// Implements the animation for when the toast is disappearing.
 /// </summary>
 /// <param name="startPoint">Start point of the animation.</param>
 /// <param name="endPoint">End point of the animation.</param>
 protected virtual void RunDisappearanceAnimation(Point startPoint, Point endPoint)
 {
     // create animation to slide out the toast
     currentStoryboard = ToastUtility.SlideOut(this, startPoint, endPoint, DisappearingAnimation_Completed);
 }