public ModalFrameController(UIViewController contentViewController, Action doneTapped) { DoneAction = doneTapped; View = new UIView(); _toolbar = new UIToolbar(); View.AddSubviewDockBottom(_toolbar); _toolbar.SetItems( new UIBarButtonItem[] { new UIBarButtonItem(UIBarButtonSystemItem.FlexibleSpace), new UIBarButtonItem(UIBarButtonSystemItem.Done, (s, e) => _doneAction()) }, false ); _toolbar.BarStyle = UIBarStyle.Default; _toolbar.TintAdjustmentMode = UIViewTintAdjustmentMode.Normal; _contentView = new UIView(); //_contentView.BackgroundColor = UIColor.White; this.View.AddSubviewDock( _contentView, leftTarget: DockTarget.ToContainer(), topTarget: DockTarget.ToContainer(), rightTarget: DockTarget.ToContainer(), bottomTarget: DockTarget.ToView(_toolbar) ); ContentViewController = contentViewController; }