【发布时间】:2013-12-07 12:36:53
【问题描述】:
我有一个自定义条目元素类,但我想将文本字段颜色从默认更改为白色。请注意,这不是 TextLabel 文本颜色,而是用户在 EntryElement 中输入的文本。这就是我目前所拥有的......
public class StandardEntryElement : EntryElement
{
public StandardEntryElement (string caption, string placeholder, string value): base(caption,placeholder,value)
{
}
public StandardEntryElement (string caption, string placeholder, string value, bool isPassword) : base(caption,placeholder,value,isPassword)
{
}
public override UITableViewCell GetCell (UITableView tv)
{
var theCell = base.GetCell (tv);
theCell.BackgroundColor = Resources.CellBackground;
theCell.TextLabel.TextColor = Resources.LabelTextColor;
theCell.TextLabel.Text = Caption;
return theCell;
}
}
【问题讨论】:
标签: xamarin.ios monotouch.dialog