See Also: MessageElement Members
C# Example
var messageSection = new Section ("Message Elements"){
new MessageElement (msgSelected) {
Sender = "Miguel de Icaza (mdeicaza.home@emailserver.com)",
Subject = "Re: [Gtk-sharp-list] Glib Timeout and other ways to handle idle",
Body = "Please bring friends, but make sure that you also bring eggs and bacon",
Date = DateTime.Now - TimeSpan.FromHours (23),
NewFlag = true,
MessageCount = 0
},
new MessageElement (msgSelected) {
Sender = "Nat Friedman (nfriedman.home@emailserver.com)",
Subject = "Pictures from Vietnam",
Body = "Hey, here are the pictures that I promised from Vietnam",
Date = new DateTime (2010, 10, 20),
NewFlag = false,
MessageCount = 2
}
};
[...]
void msgSelected (DialogViewController dvc, UITableView tv, NSIndexPath path)
{
// The message was selected
}