Using the awesome MonoTouch.dialog in some of my projects now and have a question. I have a RadioGroup that I use to allow the user to select his home state, States is a string array.
public static RootElement CreateStates ()
{
return new RootElement ("State", new RadioGroup (0))
{
new Section ("Choose State")
{
from x in States
select (Element) new RadioElement (x)
}
};
}
This works fine, and when I select state the popup appears and I pick my state, but then I have to hit the back button in the nav bar to get back to my main screen. Is there a way to have that popup dismiss when I select a choice? Having to hit the back button is annoying. Or am I just using the wrong solution to this altogether?
My first thought was to subclass RadioElement and catch the selected event, but then I still wasn't sure how to dismiss the automatic selection popup?