I've used MT.Dialog quite a bit with the Reflection API.  Now I'm trying
the hand-coding approach, and am getting stuck with creating a RadioGroup
with LINQ.

Repo.GetStates() returns a List<State>, where State has string properties
for Name, Abbrev and Code;

I think I should be able to do something like this, but it's not working.
Anyone care to correct my LINQ-fu?

            return new RootElement ("Detail"){
                new Section (){
                    new RootElement ("State", new RadioGroup (0)){
                        new Section () {
                              //from x in Repo.GetStates () select new
RadioElement (x.Name)
                        }
                    }
                }
            };
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to