I'm not 100% sure you can but possible:
public class Meals
{
[Section("Dinner")]
[Caption("Desert")]
public Desert Desert { get; set; }
}
public enum Desert
{
IceCream,
MilkShake,
ChocolateCake
}
(from looking at the code - BindingContext.MakeCaption in Reflect.cs -
you can do this:
Icecream == "Icecream"
IceCream == "Ice Cream"
ice_cream == "ice cream"
Hoep that helps.
On Mon, Jun 4, 2012 at 11:24 PM, Chris_M <[email protected]> wrote:
> I was re-reading the "Introduction to MonoTouch.Dialog" article
> (http://docs.xamarin.com/ios/tutorials/MonoTouch.Dialog) because I think
> MT.Dialog will help make some of the things I'm trying to do easier.
>
> Anyway, it's all very cool and makes sense, but there's something I can't
> figure out on my own. After the "Getting Started with the Reflection API"
> example, there's the "More on Sections and RootElements" section and the
> example with the "Meals" root element with the "Dinner" section and then the
> "Desert" nested root element. The example is done in the style of the
> "Elements API Walkthrough" earlier in the article.
>
> My question is, what would that "Meals" example look like if done using a
> class decorated MT.D attributes in the style of the Reflection API? I'm
> trying to figure out how to do the nested root element thing in a class file
> the Task class used in the Reflection API example.
>
>
> --Chris
>
> --
> View this message in context:
> http://monotouch.2284126.n4.nabble.com/MonoTouch-Dialog-question-from-the-Introduction-article-tp4655182.html
> Sent from the MonoTouch mailing list archive at Nabble.com.
> _______________________________________________
> MonoTouch mailing list
> [email protected]
> http://lists.ximian.com/mailman/listinfo/monotouch
--
Nic Wise
t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/
Earnest: Self-employed? Track your business expenses and income.
http://earnestapp.com
Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p
mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch