TabView icon indicating copy to clipboard operation
TabView copied to clipboard

Strange behaviour when removing a tab from the middle

Open singhal2 opened this issue 4 years ago • 1 comments

I observed a strange behaviour when a middle tab is removed on runtime. In that case, it seems like the header view does not adjust automatically. I created a tab view with 5 tabs and tried to remove tab 4 (index 3).

Method 1: tabView.RemoveTab(3); In this case, both the tab and the content is removed however the header strip is not adjusted and there is space left where the tab was removed.

Screenshot 2020-08-10 at 21 45 26

Method 2: tabView.ItemSource.Remove(tabView.ItemSource[3]); In this case, the tab content is removed however the header still exists. However when the header is clicked, last tab content is shown.

Great stuff otherwise. Thank you.

singhal2 avatar Aug 10 '20 16:08 singhal2

Any solution to this or any hack or workaround ?

Palak247 avatar Mar 24 '21 18:03 Palak247