, , "" , . RadioElement Selected - , , , - , , , - .
public class MyRadioElement : RadioElement {
public MyRadioElement (string pCaption) : base(pCaption) {
}
public override void Selected (
DialogViewController pDialogViewController,
UITableView pTableView, NSIndexPath pIndexPath) {
if (GetActiveCell().Accessory.ToString().Equals(
"Checkmark",StringComparison.InvariantCultureIgnoreCase)) {
return;
}
base.Selected (pDialogViewController, pTableView, pIndexPath);
var selected = OnSelected;
if (selected != null) {
selected (this, EventArgs.Empty);
}
pDialogViewController.DeactivateController(true);
}
static public event EventHandler<EventArgs> OnSelected;
}