private void displayMinYearPicker() { Section section = new Section(); List<int> years = new List<int>(); for (int i=mCacheMinYear; i<mSelectedMaxYear; i++) { years.Add(i); section.Add(new RadioElement(i.ToString())); } var viewController = new DialogViewController ( new RootElement ("Select minimum date", new RadioGroup (0)){ section }, true); viewController.OnSelection += (NSIndexPath obj) => { mSelectedMinYear = years[obj.Item]; InvokeOnMainThread( () => { ButtonYearMin.SetTitle(mSelectedMinYear.ToString(), UIControlState.Normal); viewController.DismissViewController(true, null); }); }; NavigationController.PushViewController (viewController, true); }