I had a similar problem recently. When showing a map on an anchorable pane, the markers were deleted at docking/undocking the pane. I wrote on the AvalonDock page and in the map viewer (GMaps) developer site. The issue seems to be that the component (anchorables or documents in tab controls) destroys all the childs. You can see it here: Issue tracker
My solution was to handle the layout change (detect when the window is docked, floatin as a window...etc) and act in consequence.
Documentation for AvalonDock 2.0 is not available... The only documentation I recommend is the samples provided by the developers (see MVVM sample here). Fortunately the project should be more active now because it became part of the Extended WPF Toolkit . Maybe Xceed could take care of a proper documentation.
Hope this helps.