Cirrious.MvvmCross.Dialog.Touch.Dialog.Elements.StyledStringElement.IColorizeBackground C# (CSharp) Method

IColorizeBackground() static private method

static private IColorizeBackground ( UITableView tableView, UITableViewCell cell, NSIndexPath indexPath ) : void
tableView UITableView
cell UITableViewCell
indexPath NSIndexPath
return void
        void IColorizeBackground.WillDisplay (UITableView tableView, UITableViewCell cell, NSIndexPath indexPath)
        {
            if (_extraInfo == null){
                ClearBackground (cell);
                return;
            }
			
            if (_extraInfo.BackgroundColor != null){
                cell.BackgroundColor = _extraInfo.BackgroundColor;
                cell.TextLabel.BackgroundColor = UIColor.Clear;
            } else if (_extraInfo.BackgroundUri != null){
                var img = ImageLoader.DefaultRequestImage (_extraInfo.BackgroundUri, this);
                cell.BackgroundColor = img == null ? UIColor.White : UIColor.FromPatternImage (img);
                cell.TextLabel.BackgroundColor = UIColor.Clear;
            } else 
                ClearBackground (cell);
        }