This is a migrated thread and some comments may be shown as answers.

How do I show collapsed item?

1 Answer 73 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Chris Kirkman
Top achievements
Rank 1
Chris Kirkman asked on 27 Apr 2010, 06:37 PM
I have a Docking.ToolTabStrip on the left side of my UI.  I have 3 separate Docking.ToolWindow items attached to it.

On form load I call AutoHide() on each of these 3 tool windows (so they'll be visible, but collapsed).  I want to be able to programmatically force any one of them to pop up in the NON-Collapsed mode (pinned).  I can't figure this one out.

Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Chris Kirkman
Top achievements
Rank 1
answered on 27 Apr 2010, 06:54 PM
Wow, I guess I just needed to create a forum thread before I'd figure it out.

It's actually really easy.

1.  Assume I have a ToolTabStrip called m_strip and a ToolWindow called m_tw
2.  m_tw.DockState = DockState.Docked;
3.  m_strip.SelectedTab = m_tw;

That's it!
Tags
Dock
Asked by
Chris Kirkman
Top achievements
Rank 1
Answers by
Chris Kirkman
Top achievements
Rank 1
Share this question
or