I have a list of ViewModels to show as anchorable, they are of different types, for example ViewModelA and ViewModelB, I can make a single list for binding to AnchorableSource of the docking manager, I can use different DataTemplate for each ViewModel but I can't decide where the have to be located.
I have to add at runtime elements to this list and I'd like to set in the xaml a reference to an Achorable panel or anchorable panel group in which the must be located.
For example I have to locate all the ViewModels of type ViewModelA in an anchorable on the right side, and all the ViewModels of type ViewModelB on the bottom.
I can't use the serialization of the layout because the items are generated at runtime, the serialization fail because every time I can have different viewModels.
I'd like to make the skeleton of my page layout (for example using only the document panel group and anchorable panel group) and for each of this panel mark the type of view model they will receive, or write in the list of anchorable even a reference to the panel in where the must be located on loading.
Is there any possibility to make something like this?
One solution for me could be to make binding of the list of anchorables not only to the DockingManager but even to each single anchorable panel group.
What do you think, to make the layout of complex application, simpler to be described?