migueldeicaza / MonoTouch.Dialog

Tools to simplify creating dialogs with the user using MonoTouch
MIT License
430 stars 211 forks source link

Add OnSelected event on RadioElements #200

Closed henrikweimenhog closed 10 years ago

henrikweimenhog commented 10 years ago

Add to the RadioElement class

    public Action<object, EventArgs> OnSelected {
        get;
        set;
    }

and in the Selected method in the RadioElement class add the following

    if (OnSelected != null)
            OnSelected (this, EventArgs.Empty);
timrisi commented 10 years ago

RadioElement inherits the Tapped Action from the base StringElement class, and is called as part of base.Selected (dvc, tableView, indexPath) in the RadioElement's Selected method.

migueldeicaza commented 10 years ago

Tim confirms it works now.