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

Enable/disable TabPage Items #39

Closed
louwill opened this issue Aug 2, 2012 · 7 comments
Closed

Enable/disable TabPage Items #39

louwill opened this issue Aug 2, 2012 · 7 comments

Comments

@louwill
Copy link

louwill commented Aug 2, 2012

I've been trying with no success, but is there a way to disable an individual tab page within the DockPanel? I'd like to be able to disable (and gray out) the text on a TabPage. When the cursor is placed over the TabPage, it wouldn't expand. I doubt this feature is currently available, but would be a great addition.

Thanks

@lextm
Copy link
Member

lextm commented Aug 3, 2012

You might capture screen shots of a sample project and edit it with an image editor (Photoshop, Paint.NET or any others) to achieve the effect you like to achieve. Then link them here for everyone to understand the idea better.

Based on your description above, I could hardly tell what exactly you need.

@orzFly
Copy link

orzFly commented Aug 3, 2012

@lextm He just want to make an Auto-Hide panel disabled, so when mouse is over the tab page on dockstrip, the panel won't appear.

@lextm
Copy link
Member

lextm commented Aug 3, 2012

@louwill if what you like to achieve is what @orzFly described, I don't think it should be implemented.

Why do you want to disable a panel? Closing/hiding it is better than showing it in a disabled way. To me, it is far from "a great addition".

@louwill
Copy link
Author

louwill commented Aug 3, 2012

@orzFly Your interpretation is correct.

@lextm I don't want to disable it at the very beginning. I want to disable it during runtime and triggered when DockPanel.ActiveDocument changes.

In the following example, I'd like the right hand "Component Filter" TabPage/AutoHide panel to exhibit the following behavior:
a) Gray out "Component Filter" TabPage text indicating the TabPage and associated panel is disabled when the DockPanel.ActiveDocument is not set to the "Operating Case Variables" document, and
b) When the cursor is placed over the TabPage, the AutoHide panel would not slide open.

GitHub Logo
Format: Alt Text

@orzFly
Copy link

orzFly commented Aug 3, 2012

However, as I think, If you do so, the user will think why the panel cannot open and then blame the terrible dock panel.......
Maybe you can try to disable the contents in the panel?

@louwill
Copy link
Author

louwill commented Aug 3, 2012

@orzFly I thought the same originally, but thought having the TabPage text visually grayed out would be enough indication to the user that the panel is disabled.

@orzFly
Copy link

orzFly commented Aug 3, 2012

@louwill Uh... I don't think Gray and Black looks different there ;)

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

No branches or pull requests

3 participants