Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TabItem IsEnabled False #90

Open
campersau opened this issue Mar 2, 2016 · 4 comments
Open

TabItem IsEnabled False #90

campersau opened this issue Mar 2, 2016 · 4 comments

Comments

@campersau
Copy link

It looks like Dragablz does not support IsEnabled="False" on TabItem is that true?

<TabItem Header="Tab No. 2" IsEnabled="False">
    <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center">We Have Tearable Tabs!</TextBlock>
</TabItem>

Would it be possible to add this feature?

@ButchersBoy
Copy link
Owner

It doesn't really make sense to have a disabled tab...imagine you have two tabs, 1 disabled which you can't get at. If you drag the second tab out into another window then the disabled tab is still there, exposed.

Of course you can disable your content, but in the world of re-orderable, tearable tabs it doesn't make sense.

@campersau
Copy link
Author

Yeah that is true.

I currently use dragablz because they include your material design theme but I don't use the re-orderable or tearable tabs and always set FixedHeaderCount so they pretty much behave like normal tabs. And for this use case it would make sense. But maybe this is not the main purpose of dragablz 😄

@djengineerllc
Copy link

djengineerllc commented Jun 9, 2016

From the other issue about collapsing tab Visibility, you could implement the same logic as I just posted over there to perform your desired functionality of enable/disable.

Reference Issue: #91
Example code: http://pastebin.com/rBxX7jxa

@slimshader
Copy link

slimshader commented Nov 23, 2018

Bumping up this issue. I am using Dragablz because of Material Design integration and would really like to be able to disable tabs based on (binded) settings. All works on with TabControl but is fugly :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants