DockingManager.DockableContents property

Sep 15, 2009 at 2:35 PM

I noticed another small issue. The DockingManager.DockableContents property returns each DockableContent twice

The DockableContents property has the following lines

 

 ...

foreach (FloatingWindow flWindow in _floatingWindows)
{
    foreach (ManagedContent c in flWindow.HostedPane.Items)
    {
        if (c is T)
            resList.Add(c as T);
    }
}

and the call to FindContents<DockableContent>() has the following:

 

List <DockableContent> contents = FindContents<DockableContent>();

foreach(FloatingWindow flWindow in _floatingWindows)
{
   foreach (DockableContent content in flWindow.HostedPane.Items)
      contents.Add(content);
}

...

 

May be the foreeach to loop thru the floatingwindows in DockableContents property is not required.

Thanks,

sg.

Sep 22, 2009 at 10:10 AM

Hi, Thanks for the bug report, it has been fixed and it will published with next SSVN build,

Ado