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

How do I tell if a toolwindow is hidden?

1 Answer 266 Views
Dock
This is a migrated thread and some comments may be shown as answers.
F5F5F5
Top achievements
Rank 1
F5F5F5 asked on 03 Nov 2009, 01:26 PM
Hi
I have a RadDock control with a number of ToolWindows on it. The ToolWindows have CloseAction set to Hide. The user can "open" or "close" a toolwindow from a state button (and also a checked menu item). The state of the button (and the check on the menu) should indicate the whether or not the ToolWindow is displayed. Is there a way to tell if a ToolWindow is hidden programmatically?

Thanks

1 Answer, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 05 Nov 2009, 09:25 AM
Hi Alan,

You can check the DockState property of ToolWindow and use Hide/Show methods to change the visibility of the window:

if (toolWindow.DockState == DockState.Hidden)
{
    toolWindow.Show();
}
else
{
    toolWindow.Hide();
}

All the best,
Julian Benkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Dock
Asked by
F5F5F5
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
Share this question
or