public RadScaleAndMoveAnimation() { this.move = this.CreateMoveAnimation(); this.scale = this.CreateScaleAnimation(); this.Children.Add(this.move); this.Children.Add(this.scale); }
/// <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); }
[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); }
/// <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); }
/// <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); }