【问题标题】:MonoTouch.Dialog StyledStringElementMonoTouch.Dialog StyledStringElement
【发布时间】:2013-03-31 14:10:43
【问题描述】:

大家好!

如何在 MonoTouch.Dialog 中设置/访问 StyledStringElement 的 DetailTextLabel?

【问题讨论】:

    标签: xamarin.ios element monotouch.dialog xamarin


    【解决方案1】:

    第二个参数是详细文本值。请注意,您必须指定支持详细文本的单元格样式(第三个参数) - 默认单元格样式不显示详细文本值。

    new StyledStringElement ("Default", "Invisible value", UITableViewCellStyle.Default),
    new StyledStringElement ("Value1", "Aligned on each side", UITableViewCellStyle.Value1),
    new StyledStringElement ("Value2", "Like the Addressbook", UITableViewCellStyle.Value2),
    new StyledStringElement ("Subtitle", "Makes it sound more important", UITableViewCellStyle.Subtitle),
    new StyledStringElement ("Subtitle", "Brown subtitle", UITableViewCellStyle.Subtitle) {
        DetailColor = UIColor.Brown
    }
    

    请参阅MT.Dialog sample app,了解此代码的实际操作示例。

    【讨论】:

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