chaosifier / TabView

TabView control for Xamarin.Forms.
MIT License
124 stars 32 forks source link

[Question] Removing a specific tab #40

Open eyeveye opened 4 years ago

eyeveye commented 4 years ago

I can't find a way to remove a specific tab or move to a specific tab. Any idea?

chaosifier commented 4 years ago

For removing a specific tab you could try removing the item from ItemSource or TemplatedItemSource depending on what you're using. For moving to a particular tab you could use the SelectedTabIndex property.

eyeveye commented 2 years ago

I tried remove the tab using itemsource in OnAppearing, but the tab is still there. I checked the itemsource it got removed, but in UI still showing.

eyeveye commented 2 years ago

My workaround would be remove all the tab, and reinsert it again. for(int x=0;x<TabViewStage.ItemSource.Count;x++) { RemoveTab(); }