TabView icon indicating copy to clipboard operation
TabView copied to clipboard

[Question] Removing a specific tab

Open eyeveye opened this issue 4 years ago • 3 comments

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

eyeveye avatar Jun 16 '20 04:06 eyeveye

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.

chaosifier avatar Jun 18 '20 05:06 chaosifier

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 avatar Jul 14 '22 09:07 eyeveye

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

eyeveye avatar Jul 14 '22 10:07 eyeveye