开发者

MonoTouch.Dialog: Getting StringElement to have an AccessoryView

开发者 https://www.devze.com 2023-02-23 06:23 出处:网络
When a StringElement has A Tapped Ac开发者_运维技巧tion associated with it, how do I get it to display a UITableViewCellAccessory.DisclosureIndicator ?

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 }

0

精彩评论

暂无评论...
验证码 换一张
取 消