void TabHost_TabChanged(object sender, TabHost.TabChangeEventArgs e) { if (Tags.IndexOf(e.TabId.ToString()) == Tags.IndexOf(tabHost.CurrentTabTag)) { Pager.SetCurrentItem(Tags.IndexOf(e.TabId.ToString()), true); } }
private void MyTabHost_TabChanged(object sender, TabHost.TabChangeEventArgs e) { var tab = sender as TabHost; ViewModel.SetTab(tab.CurrentTab); ViewModel.CurrentStatisticViewModel.SetAttacks(); }
void TabHost_TabChanged(object sender, TabHost.TabChangeEventArgs e) { if (currentTabId == null || currentTabId == "airports") { TinyIoC.TinyIoCContainer.Current.Resolve <AirportsViewModel>().SaveCommand.Execute(null); } currentTabId = e.TabId; }
void TabHostHandleTabChanged(object sender, TabHost.TabChangeEventArgs e) { if (e.TabId.Equals("Monthly")) { PushFragments(statisticTabMonthly); } else if (e.TabId.Equals("By Date")) { PushFragments(statisticTabByDate); } }
void TabHost_TabChanged(object sender, TabHost.TabChangeEventArgs e) { TextView tabTextHeader = FindViewById <TextView>(Resource.Id.tabTextHeader); ImageView imgflashicon = FindViewById <ImageView>(Resource.Id.imgflashicon); TabHost tb = (TabHost)sender; if (e.TabId == "Manual") { tabTextHeader.SetText("Manual Entry Inventory", TextView.BufferType.Normal); imgflashicon.Visibility = ViewStates.Visible; } if (e.TabId == "Dictation") { tabTextHeader.SetText("Voice Dictation Inventory", TextView.BufferType.Normal); imgflashicon.Visibility = ViewStates.Visible; } if (e.TabId == "Barcode") { tabTextHeader.SetText("Barcode Entry Inventory", TextView.BufferType.Normal); imgflashicon.Visibility = ViewStates.Visible; } //return false; }
private void TabHostOnTabChanged(object sender, TabHost.TabChangeEventArgs args) { OnTabChanged(args.TabId); }