MonoTouch.Dialog: Getting StringElement to have an AccessoryView
When a StringElement has A Tapped Ac开发者_运维技巧tion associated with it, how do I get it to display a UITableViewCellAccessory.DisclosureIndicator ?
I can subclass it and roll my own, but I'd rather stick to the MonoTouch.Dialog framework.
StringElement s = new StringElement (item.Title);
s.Tapped += delegate { ShowDomainItem (s); };
Try StyledStringElement that allows many more settings to be configured than the StringElement.
To expand on what Miguel said:
new StyledStringElement ("Movie Cast") { Accessory = UITableViewCellAccessory.DisclosureIndicator }
精彩评论