void SetTabColors() { for (int i = 0; i < Element.Children.Count; ++i) { Page page = Element.Children[i]; Color?tabColor = page.GetTabColor() ?? Color.Black; _bottomBar.MapColorForTab(i, tabColor.Value.ToAndroid()); } }
void SetTabColors() { for (int i = 0; i < Element.Children.Count; ++i) { Page page = Element.Children [i]; Color tabColor = BottomBarPageExtensions.GetTabColor(page); if (tabColor != Color.Transparent) { _bottomBar.MapColorForTab(i, tabColor.ToAndroid()); } } }