
One of the document window contents needs to change at runtime based on the user action. So in the XAML I have used the content property of document window and it is bound to a property in my viewmodel.
<docking:DocumentWindow Header="Home" Content="{Binding CurrentHomeView}">
The CurrentHomeView property is a type of base viewmodel class. Two viewmodel classes representing different views are derived from this base class and one of them is assigned and the corresponding view is picked up by the DataTemplate defined in the XAML file.
This works fine and the view changes based on user action till the time the document window is within the main window. Once the document is moved out as a separate window it just shows the name of the viewmodel class instead of view. So it looks like it is not able to find the corresponding view.
Is there something that I am missing to get this working while is the document window is moved out?