MonoTouch.Dialog:EntryElement的背景颜色(MonoTouch.Dialo

2019-10-17 09:17发布

是一个怎么的背景颜色 EntryElement在改变MonoTouch.Dialog

Answer 1:

public class PaperEntryElement: EntryElement
{
    public PaperEntryElement(string caption, string placeholder, string value)
        : base(caption,placeholder,value)
    {
    }

    public override UITableViewCell GetCell(UITableView tv)
    {
        var cell= base.GetCell(tv);
        cell.BackgroundColor = 
           UIColor.FromPatternImage(MediaProvider
                                       .GetImage(ImageGeneral.paper_tile));
        return cell;
    }
}


文章来源: MonoTouch.Dialog: EntryElement's background color