XamarinCommunityToolkit icon indicating copy to clipboard operation
XamarinCommunityToolkit copied to clipboard

[Feature Request] TabView: Disable Tab

Open HarryLobster opened this issue 4 years ago • 3 comments
trafficstars

I would like to Enable/Disable certain Tabs I mean not their Content but that the user is not allowed to switch to this Tab at all.

HarryLobster avatar Apr 13 '21 04:04 HarryLobster

I like the idea. Also, hide/show tabs is probably a scenario that would be interesting to cover in the future.

jsuarezruiz avatar Apr 13 '21 17:04 jsuarezruiz

@HarryLobster i wanted this too. what i came up with is a conditional input transparent logic in code behind

technololy avatar May 27 '21 23:05 technololy

@jsuarezruiz

I Agree. In fact, hiding / showing tabs dynamically is not only interesting but, IMO, an essential feature. I'd like to see it implemented as soon as possible.

As for now, I've used an ugly hack and put two TabViews with different number tabs on to a page and make one of them visible depending on a condition. This is so annoying, ugly, inefficient, etc. Especially given the fact, that a TabViewItem has both the IsVisible and IsEnabled properties in the interface. They are just not working as expected.

esamk avatar Feb 13 '22 07:02 esamk