Problem with closing all DockableContents

Oct 26, 2009 at 12:01 PM

Hi,

Does someone had problem similar to mine? When I use for example docking manager int this way:

<AvalonDock:DockingManager>
   <AvalonDock:ResizingPanel Name="rpanel">
      <AvalonDock:DockablePane>
         <AvalonDock:DockableContent Name="Window1">
         </AvalonDock:DockableContent>
      </AvalonDock:DockablePane>
      <AvalonDock:DockablePane>
         <AvalonDock:DockableContent Name="Window2">
         </AvalonDock:DockableContent>
      </AvalonDock:DockablePane>
   </AvalonDock:ResizingPanel>  
</AvalonDock:DockingManager>


everything is displaying correctly. But when I close all dockableContents (Window1 and Window2) something strange happens - there is unexpected dockableContent without title underneath and after clicking on ints bar it throws Exception:
Object reference not set to an instance of an object.

How can I fix this problem??

regards
pit