У меня есть класс элемента пользовательского элемента, но Id нравится менять цвет текстового поля по умолчанию Назад на белый. Обратите внимание, что это не цвет текста TextLabel, а текст, введенный пользователем в элемент EntryElement. Это то, что я до сих пор ..Как изменить цвет текста элемента Entry из черного в белый
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;
}
}