1

a 的背景颜色是如何EntryElement变化的MonoTouch.Dialog

4

1 回答 1

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;
    }
}
于 2013-02-03T19:06:23.220 回答