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

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

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

            this.Children.Add(this.move);
            this.Children.Add(this.scale);
        }
        public RadScaleAndFadeAnimation()
        {
            this.scale = this.CreateScaleAnimation();
            this.fade  = this.CreateFadeAnimation();

            this.Children.Add(this.scale);
            this.Children.Add(this.fade);
        }
示例#4
0
        /// <summary>
        /// Called in the constructor to create the default scale animation.
        /// </summary>
        /// <returns>Returns a new instance of RadScaleAnimation.</returns>
        protected virtual RadScaleAnimation CreateScaleAnimation()
        {
            RadScaleAnimation result = new RadScaleAnimation();

            return(result);
        }