-
Notifications
You must be signed in to change notification settings - Fork 8
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
added basic "dont display closer on first N tabs" #5
base: master
Are you sure you want to change the base?
Conversation
Can you please provide some justification for this? For example, one or more specific use cases. |
You may want to use first tab as a main tab which opens other tabs in the same tabcontrol |
I vote for this PR too. |
Sorry for not responding to this when it was first raised. I'm not able to envisage a situation where I would find this an acceptable UI design. So I'd still like to hear of a specific use case that couldn't be carried out better by a more effective design. Having said that, I can certainly see a case for disabling the closer on a per-tab basis, rather like the 'Pin this tab' functionality in Visual Studio. But that is a more difficult development. |
Hmm, if it is possible to hide a certain close buttons in specific tabs, that will be better. |
@h1ru5 The way to go is providing a method to control the visibility of close buttons for each tab. |
I have a set of changes that adds an IExtenderProvider implementation which provides a CanClose property on each tab page (with designer support), plus modifications to TabControlExtra to use those properties to suppress the close button on each tab if that extender property is defined and set to false. Having a per-tab, optional close button is a feature of tab controls in a number of other (not winforms) frameworks - it's definitely useful to have. If there is interest I can produce a PR with those changes. |
No description provided.