Accessing hidden DockPanel after LoadXML

3 posts, 0 answers
  1. Roland
    Roland avatar
    5 posts
    Member since:
    Feb 2007

    Posted 06 Nov 2007 Link to this post

    Hello,

    I use LoadXML() and then try to find a specific panel through the ID. If the layout contains hidden (unpinned) DockPanels, I don't find them with the following sample code.
    foreach (IDockingSite site in this.mDockingManager.DockingSites)

    foreach
    (IDockable dockable in site.ManagedDockables)
    if (dockable.ID.Equals(equipmentID))
        return(DockPanel)dockable;

    Are hidden panels not stored in the ManagedDockables collection?

    Thanks, Roland
  2. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 07 Nov 2007 Link to this post

    Hello Roland,

    Thank you for writing. Hidden panels are stored in the ManagedDockables collection and also in the saved XML layout. Please use the GetManagedDockables method of the DockingManager in the following way:

    foreach (IDockable dockable in mDockingManager.GetManagedDockables())  
    if (dockable.ID.Equals(equipmentID))  
        return(DockPanel)dockable;  
     

    I hope this helps. If you have any additional questions, please contact us.

    All the best,
    Julian Benkov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Roland
    Roland avatar
    5 posts
    Member since:
    Feb 2007

    Posted 07 Nov 2007 Link to this post

    Hi Julian,

    that's exactly what I'm looking for. Thx a lot.

    Roland
Back to Top