public UIBuddyLabel WillAnimate(UIBuddyAnimateDirection direction, double delay) { AnimDirection = direction; AnimDelay = delay; if (AnimDirection == UIBuddyAnimateDirection.Left) { this.Center = new CGPoint(this.Center.X + 40, this.Center.Y); } else if (AnimDirection == UIBuddyAnimateDirection.Right) { this.Center = new CGPoint(this.Center.X - 40, this.Center.Y); } else if (AnimDirection == UIBuddyAnimateDirection.Up) { this.Center = new CGPoint(this.Center.X, this.Center.Y - 40); } else if (AnimDirection == UIBuddyAnimateDirection.Down) { this.Center = new CGPoint(this.Center.X, this.Center.Y + 40); } return(this); }
public UIBuddyViewBase <T> WillAnimate(UIBuddyControlHelper helper, UIBuddyAnimateDirection direction, nfloat distance, double delay) { AnimDirection = direction; AnimDelay = delay; AnimDistance = distance; helper.animationList.Add(this); return(this); }
public UIBuddyLayoutBase WillAnimate(UIBuddyAnimateDirection direction, double delay) { AnimDirection = direction; AnimDelay = delay; if (AnimDirection == UIBuddyAnimateDirection.Left) { this.Center = new CGPoint(this.Center.X + 40, this.Center.Y); } else { this.Center = new CGPoint(this.Center.X - 40, this.Center.Y); } return(this); }