[MonoTouch] MT.Dialog - creating a RadioGroup with LINQ
Jason Awbrey
jason at awbrey.net
Thu Mar 15 19:58:59 UTC 2012
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)
}
}
}
};
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monotouch/attachments/20120315/54db93d9/attachment.html>
More information about the MonoTouch
mailing list