public View CreateLabelFor(string propertyName, Color color, LayoutOptions layout, string id = "", bool isHeader = false) { iiLabel iiLabel = new iiLabel { TextColor = isHeader ? Color.White.ToFormsColor() : Color.DarkBlue.ToFormsColor(), Text = propertyName, HorizontalOptions = layout, HeightRequest = 25, WidthRequest = 130, FontSize = 10, ClassId = id, XAlign = TextAlignment.Center, YAlign = TextAlignment.Center, BackgroundColor = color.ToFormsColor(), }; return iiLabel; }