public CustomPhonePicker(string currentValue) : base(null, true) { SelectedValue = new PersonPickerReturnResult(); phoneInput = new EntryElement("Phone Number", "", currentValue); phoneInput.Changed += delegate { SelectedValue.PhoneNumber = phoneInput.Value; }; personPicker = new StyledStringElement("Chose from Contact"); personPicker.Accessory = UITableViewCellAccessory.DisclosureIndicator; personPicker.Tapped += delegate { setupPicker(); this.PresentModalViewController(picker, true); }; Root = new RootElement("Phone Picker") { new Section { phoneInput, personPicker } }; }
public CustomPhonePicker(string currentValue) : base(null,true) { SelectedValue = new PersonPickerReturnResult (); phoneInput = new EntryElement ("Phone Number", "", currentValue); phoneInput.Changed += delegate { SelectedValue.PhoneNumber = phoneInput.Value; }; personPicker = new StyledStringElement ("Chose from Contact"); personPicker.Accessory = UITableViewCellAccessory.DisclosureIndicator; personPicker.Tapped += delegate { setupPicker (); this.PresentModalViewController (picker, true); }; Root = new RootElement ("Phone Picker") { new Section { phoneInput, personPicker } }; }