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

Accessing hidden DockPanel after LoadXML

2 Answers 53 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Roland
Top achievements
Rank 1
Roland asked on 06 Nov 2007, 07:33 PM
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 Answers, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 07 Nov 2007, 12:41 PM
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
0
Roland
Top achievements
Rank 1
answered on 07 Nov 2007, 10:25 PM
Hi Julian,

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

Roland
Tags
Dock
Asked by
Roland
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
Roland
Top achievements
Rank 1
Share this question
or