RadDock - Hidden Windows - How to manage?

2 posts, 0 answers
  1. grahame mcgirr
    grahame mcgirr avatar
    2 posts
    Member since:
    Jul 2009

    Posted 09 Dec 2009 Link to this post

    I have a RadDock control that contains Tool Windows, Document Windows and Shaped Forms.

    I want to be able to display a list of hidden windows and restore them to their pre-hidden state.

    Questions :-

    - Is there a list of these windows somewhere or do I have to track the windows that are hidden?
    - If I need to track the windows that are hidden how do I do that?
    - Any suggestions as to which control would be best suited to display the list of hidden windows, i.e. if you've done it before, used a particular control and it worked well

    Thx
  2. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 11 Dec 2009 Link to this post

    Hi grahame mcgirr,

    You can easily get the hidden windows with the help of the GetWindows method. You should just pass the Hidden DockState as a parameter and you will get the desired collection:

    DockWindow[] hiddenWindows = this.radDock1.DockWindows.GetWindows(DockState.Hidden);

    You can display a list of hidden windows either in RadListBox or in RadGridView looking as RadListBox.

    Kind regards,
    Nikolay
    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