protected MultipleChoiceElement <T> CreateMultipleChoiceElement <T>(string title, T o) { var element = new MultipleChoiceElement <T>(title, o); element.Tapped += () => { var en = new MultipleChoiceViewController(element.Caption, o); en.ViewDisappearing += (sender, e) => { element.Value = CreateCaptionForMultipleChoice(o); }; NavigationController.PushViewController(en, true); }; return(element); }
protected MultipleChoiceElement <T> CreateMultipleChoiceElement <T>(string title, T o) { var element = new MultipleChoiceElement <T>(title, o); element.Clicked.Subscribe(_ => { var en = new MultipleChoiceViewController(element.Caption, o); en.Disappearing.Subscribe(__ => { element.Value = CreateCaptionForMultipleChoice(o); }); NavigationController.PushViewController(en, true); }); return(element); }