I recently had a similar problem. When the map was displayed on the panel to be attached, markers were deleted when the panel was docked / undocked. I wrote on the AvalonDock page and on the map developer website (GMaps). The problem is that the component (bindings or documents in tab controls) destroys all child elements. You can see it here: Problem Tracking
My solution was to handle the layout change (detect when the window is docked, float like a window ... etc.) and act afterwards.
Documentation for AvalonDock 2.0 is not available ... The only documentation I recommend is samples provided by developers (see MVVM sample here ). Fortunately, the project should be more active now because it has become part of the Extended WPF Toolkit . Perhaps Xceed can take care of the proper documentation.
Hope this helps.
source share