void ShowViewWithAnimation() { var topLeft = this.GetCenter(CanvasView.Frame); var topRight = new CGPoint(topLeft.X + CanvasView.Frame.Width, topLeft.Y); CanvasView.Frame = new CGRect(topLeft, CanvasView.Frame.Size); CanvasView.Layer.BorderWidth = 2; CanvasView.Layer.BorderColor = UIColor.FromRGB(42, 56, 93).CGColor; CanvasView.Transform = CGAffineTransform.Scale(CGAffineTransform.MakeIdentity(), 0.001f, 0.001f); Add(CanvasView); AnimateAsync(0.2, () => { CanvasView.Transform = CGAffineTransform.Scale(CGAffineTransform.MakeIdentity(), 1, 1); }); CancelButton.SizeToFit(); CancelButton.Frame = new CGRect(new CGPoint(topLeft.X + 10, topLeft.Y - 40), CancelButton.Frame.Size); Add(CancelButton); Add(OkButton); OkButton.SizeToFit(); OkButton.Frame = new CGRect(new CGPoint(topRight.X - OkButton.Frame.Width - 10, topRight.Y - 40), OkButton.Frame.Size); }