Here is an AppDelegate that contains an example of the problem I'm finding
with MT.Dialog and radio elements.

https://gist.github.com/3780834


This is just a *DialogViewController *that contains 3 *RadioElement*'s.

The problem is that when the radio-elements are added via a background
thread/task, which then marshals back onto the UI thread, the
radio-elements turn up in the table in a selected state (the "tick" is
visible) and they do no respond to tap events, or change state on tap.

      // FAILS: Add some items on a background thread.
      //      All items will be selected, and won't recieve click events.
      Task.Factory.StartNew(() => {
        BeginInvokeOnMainThread(() => addRadios(3));
      });


Can anyone see what is going on here.  This seems to be related to calling
back in from the background thread to update the UI.  Is there something
I'm missing in how to do this safely?

Thanks!

-- 
*Phil *Cockfield
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to