Chris, the things in square brackets [] are attributes which must be 'applied' to a language construct (class, field, property, etc).
in your example you have a lot of attributes but nothing to 'apply' them to. in this example (from mt.d docs<http://docs.xamarin.com/ios/tutorials/MonoTouch.Dialog>) notice the Name, Details and IsApproved elements. although it seems like the [Section] attributes are living on their own, they are actually being associated with the subsequent field. public class Expense { [Section("Expense Entry")] [Entry("Enter expense name")] public string Name; [Section("Expense Details")] [Caption("Description")] [Entry] public string Details; [Checkbox] public bool IsApproved = true; } you are getting the 'unexpected }' error because you _at least one_ (but probably more, for your example to work) field or property in your class. hth craig On Wed, Jun 27, 2012 at 5:17 AM, Chris_M <[email protected]> wrote: > > I need to have a Help screen for my app. I just need a simple table view > listing help topics, with the idea being that the user can tap a cell and > go > to a new view with text on the topic in question. > > Although I've done a lot of work the past few weeks with UITableViews used > in various ways, I thought this Help functionality would be a good > opportunity to use MT.Dialog. > > I decided to make my Help screen by imitating the MTDReflectionWalkthrough > project because it seemed like the simplest and easiest example to follow. > I > decided to make a Help class file as a parallel to the Expense file used in > the example. I just wanted to get the basic structure up and running (I > haven't worried about how to get tapping an element to push the new view > with help text on the tapped topic), so this is what I wrote: > > using System; > using MonoTouch.Dialog; > > namespace CountyInfo > { > public class Help > { > [Section ("Help Topics")] > > [StringElement ("Frequently Asked Questions", null)] > > [StringElement ("How the App Works", null)] > > [StringElement ("Searching for County Information", null)] > > [StringElement ("County Regions", null)] > > > [Section] > > [StringElement ("About Thios App", null)] > > } > } > > I have no idea yet if this will look like I want or support the > functionality I'm after, but it seemed like a safe start. But oddly (to me > at least) when I compile I get an "unexpected symbol }" error message for > the second-to-last closing curly bracket. That doesn't make sense to me > unless there's some sort of symbol I'm supposed to be using in the > MT.Dialog > code there, but I don't know what that would be. > > Can anyone tell me what I'm doing wrong there? > > > --Chris > > > > > -- > View this message in context: > http://monotouch.2284126.n4.nabble.com/Need-help-with-basic-MT-Dialog-tp4655588.html > Sent from the MonoTouch mailing list archive at Nabble.com. > _______________________________________________ > MonoTouch mailing list > [email protected] > http://lists.ximian.com/mailman/listinfo/monotouch >
_______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
