public RadScaleAndMoveAnimation()
        {
            this.move  = this.CreateMoveAnimation();
            this.scale = this.CreateScaleAnimation();

            this.Children.Add(this.move);
            this.Children.Add(this.scale);
        }
Exemple #2
0
        /// <summary>
        /// Called in the constructor to create the default move animation.
        /// </summary>
        /// <returns>Returns a new instance of RadMoveAnimation.</returns>
        protected virtual RadMoveAnimation CreateMoveAnimation()
        {
            RadMoveAnimation result = new RadMoveAnimation();

            result.StartPoint = new Point(0, 300);

            return(result);
        }
Exemple #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);
        }
Exemple #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()
        {
            RadMoveAnimation reverse = base.CreateOpposite() as RadMoveAnimation;

            if (this.MoveDirection.HasValue)
            {
                reverse.MoveDirection = GetOppositeDirection(this.MoveDirection.Value);
            }

            return(reverse);
        }
Exemple #5
0
        /// <summary>
        /// Called in the constructor to create the default move animation.
        /// </summary>
        /// <returns>Returns a new instance of RadMoveAnimation.</returns>
        protected virtual RadMoveAnimation CreateMoveAnimation()
        {
            RadMoveAnimation result = new RadMoveAnimation();

            return(result);
        }