So finally I have narrowed down the problem by investigating the issue in the AvalonDock code, but I am seeking assistance on my observation to figure out if it is a bug or my code issue.
So my XAML is the same as mentioned below. While calling LayoutInitializer I am attaching two of the anchorables to two panes, ErrorsPane and NotesPane but not attaching anything in FindPane. This anchorable is added to the pane when user press Ctrl + F keyboard shortcut but before even that while i am adding my Documents using DocumentsSource, the method DocumentsSourceElementsChanged in DockingManager class is fires and calling Layout?.CollectGarbage() which removes the empty panes. This is why I am lossing it.
So finally I have narrowed down the problem by investigating the issue in the AvalonDock code, but I am seeking assistance on my observation to figure out if it is a bug or my code issue.
So my XAML is the same as mentioned below. While calling
LayoutInitializer
I am attaching two of the anchorables to two panes, ErrorsPane and NotesPane but not attaching anything in FindPane. This anchorable is added to the pane when user press Ctrl + F keyboard shortcut but before even that while i am adding my Documents usingDocumentsSource
, the methodDocumentsSourceElementsChanged
inDockingManager
class is fires and callingLayout?.CollectGarbage()
which removes the empty panes. This is why I am lossing it.