MonoMobile.Views.BaseDialogViewSource.GetViewForHeader C# (CSharp) Method

GetViewForHeader() public method

public GetViewForHeader ( UITableView tableView, int sectionIndex ) : UIView
tableView UITableView
sectionIndex int
return UIView
		public override UIView GetViewForHeader(UITableView tableView, int sectionIndex)
		{
			if (Sections.Count > sectionIndex && Sections.ContainsKey(sectionIndex))
			{
				var section = Sections[sectionIndex];
				if (section != null)
				{
					if (section.HeaderView == null && !string.IsNullOrEmpty(section.HeaderText))
					{
						section.HeaderView = CreateHeaderView(tableView, section.HeaderText);
					}
		
					return section.HeaderView;
				}
			}
			return null;
		}