public override void WillDisplay(UITableView tableView, UITableViewCell cell, NSIndexPath indexPath)
{
if (PerformActionIfCellListElement(cell, indexPath, (listSource) => listSource.WillDisplay(tableView, cell, indexPath)))
{
return;
}
foreach (var section in Sections.Values)
{
if (section.Views.ContainsKey(cell))
{
var views = section.Views[cell];
if (views.Count > 0)
{
foreach (var view in views)
{
var updateable = view as IUpdateable;
if (updateable != null)
{
updateable.UpdateCell(cell, indexPath);
}
var themeable = view as IThemeable;
if (themeable != null)
{
themeable.ApplyTheme(cell);
}
}
}
}
}
}