By advance, excuse-me because I'm a new user of CodePlex (so I don't know how to report an issue), and because I'm... French, so my english can be bad very often !! YeWell, here's the issue:
When a DockingManager is created but is never visible (for example in a TabItem of a TabControl), _autoHideWindowManager member stays null. But when this DockingManager is unloader, the event handler DockingManager_Unloaded is called and there is an exception on "_autoHideWindowManager.HideAutoWindow();" line since _autoHideWindowManager is null.
I think that this code :
if (_autoHideWindowManager != null)
{
_autoHideWindowManager.HideAutoWindow();
}
should be better to manage this case (DockingManager never visible before to be unloaded)
Comments: ** Comment from web user: rickSaw **
When a DockingManager is created but is never visible (for example in a TabItem of a TabControl), _autoHideWindowManager member stays null. But when this DockingManager is unloader, the event handler DockingManager_Unloaded is called and there is an exception on "_autoHideWindowManager.HideAutoWindow();" line since _autoHideWindowManager is null.
I think that this code :
if (_autoHideWindowManager != null)
{
_autoHideWindowManager.HideAutoWindow();
}
should be better to manage this case (DockingManager never visible before to be unloaded)
Comments: ** Comment from web user: rickSaw **
Sorry, the null check did work for me.
I had a reference to the DLL from NuGet instead of the source code I was compiling.