/// <summary>
        /// Called in the constructor to create the default fade animation.
        /// </summary>
        /// <returns>Returns a new instance of RadFadeAnimation.</returns>
        protected virtual RadFadeAnimation CreateFadeAnimation()
        {
            RadFadeAnimation result = new RadFadeAnimation();

            result.Duration = new Duration(TimeSpan.FromSeconds(0.3));

            return(result);
        }
        public RadScaleAndFadeAnimation()
        {
            this.scale = this.CreateScaleAnimation();
            this.fade  = this.CreateFadeAnimation();

            this.Children.Add(this.scale);
            this.Children.Add(this.fade);
        }
Beispiel #3
0
        [SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] // These virtual calls do not rely on uninitialized base state.
        public RadMoveAndFadeAnimation()
        {
            this.move = this.CreateMoveAnimation();
            this.fade = this.CreateFadeAnimation();

            this.Children.Add(this.move);
            this.Children.Add(this.fade);
        }
Beispiel #4
0
        /// <summary>
        /// Creates a new instance of this animation that is the reverse of this instance.
        /// </summary>
        /// <returns>A new instance of this animation that is the reverse of this instance.</returns>
        public override RadAnimation CreateOpposite()
        {
            RadFadeAnimation opposite = base.CreateOpposite() as RadFadeAnimation;
            double           tmp      = opposite.StartOpacity;

            opposite.StartOpacity = opposite.EndOpacity;
            opposite.EndOpacity   = tmp;

            return(opposite);
        }
 private void ApplyPageAnimation()
 {
     this.pageAnimation = new RadFadeAnimation();
     if (this.InOutAnimationMode == InOutAnimationMode.Out)
     {
         this.pageAnimation.StartOpacity = 1;
         this.pageAnimation.EndOpacity   = 0;
     }
     else
     {
         this.pageAnimation.StartOpacity = 0;
         this.pageAnimation.EndOpacity   = 1;
     }
 }
Beispiel #6
0
        /// <summary>
        /// Called in the constructor to create the default fade animation.
        /// </summary>
        /// <returns>Returns a new instance of RadFadeAnimation.</returns>
        protected virtual RadFadeAnimation CreateFadeAnimation()
        {
            RadFadeAnimation result = new RadFadeAnimation();

            return(result);
        }