I solved this by adding the below helper into my BaseDialogViewController class which subclasses DialogViewController
internal int RowCount = 0;
protected StyledStringElement Alternate(StyledStringElement element)
{
if (++RowCount % 2 == 0) element.BackgroundColor = Settings.ColorAlternatingRow;
return element;
}
Then in code after I create an element, I pass it to this function to style up.