private void ConfigureTabView() { this.SetBackgroundColor(Color.ParseColor("#037ef3")); var index = 0; foreach (var category in viewModel.Categories) { var tabViewItem = new SfTabItem { Title = category, IconFont = fontstring[index], FontIconStyle = Typeface.CreateFromAsset(appcontext.Assets, "TabIcons.ttf"), Content = ListViewCollection[index], SelectionColor = Color.White, TitleFontColor = Color.White, FontIconFontColor = Color.White, }; this.Items.Add(tabViewItem); index++; } this.SelectionIndicatorSettings = new SelectionIndicatorSettings() { Position = SelectionIndicatorPosition.Bottom, Color = Color.White }; this.selectionindicatorPosition = SelectionIndicatorPosition.Bottom; this.displayMode = TabDisplayMode.Text; this.OverflowMode = OverflowMode.Scroll; this.VisibleHeaderCount = 4; this.tabheaderPosition = TabHeaderPosition.Top; }
public void ApplyChanges() { this.displayMode = this.DisplayMode; if (this.displayMode == TabDisplayMode.ImageWithText) this.TabHeight = 72; else this.TabHeight = 48; this.tabheaderPosition = this.TabHeaderPosition; this.selectionindicatorPosition = this.SelectionIndicatorSettings.Position; }