【问题标题】:MonoTouch.Dialog: Getting StringElement to have an AccessoryViewMonoTouch.Dialog:让 StringElement 拥有一个 AccessoryView
【发布时间】:2011-04-11 08:15:33
【问题描述】:

当 StringElement 具有与之关联的 Tapped Action 时,如何让它显示 UITableViewCellAccessory.DisclosureIndicator ?

我可以继承它并推出自己的,但我宁愿坚持使用 MonoTouch.Dialog 框架。

StringElement s = new StringElement (item.Title);
s.Tapped += delegate { ShowDomainItem (s); };

【问题讨论】:

    标签: xamarin.ios monotouch.dialog


    【解决方案1】:

    试试 StyledStringElement,它允许配置比 StringElement 更多的设置。

    【讨论】:

      【解决方案2】:

      扩展 Miguel 所说的内容:

      new StyledStringElement ("Movie Cast") { Accessory = UITableViewCellAccessory.DisclosureIndicator }

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2012-01-07
        • 2012-01-22
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多