MonoTouch.Dialog.DialogViewController.Source.GetCell C# (CSharp) Method

GetCell() public method

public GetCell ( UITableView tableView, MonoTouch indexPath ) : UITableViewCell
tableView UITableView
indexPath MonoTouch
return UITableViewCell
			public override UITableViewCell GetCell (UITableView tableView, MonoTouch.Foundation.NSIndexPath indexPath)
			{
				var section = Root.Sections [indexPath.Section];
				var element = section.Elements [indexPath.Row];
				
				var cell = element.GetCell (tableView);
				if (Root.Appearance.CellHighlightedColor != null) {
					cell.SelectedBackgroundView = new UIView { BackgroundColor = Root.Appearance.CellHighlightedColor };
				}
				 
				cell.Hidden= element.Hidden;
				return cell;
			}