How do I tell if a toolwindow is hidden?

2 posts, 0 answers
  1. F5F5F5
    F5F5F5 avatar
    7 posts
    Member since:
    Oct 2009

    Posted 03 Nov 2009 Link to this post

    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
  2. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 05 Nov 2009 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top