This project is read-only.

[Version 2.0] How to set the DocumentSource of the DockingManager with multiple ViewModels?

Sep 2, 2013 at 4:09 PM
Hi!

I'm working with a project which every created tab can depend on different ViewModel.
For example, the first tab is a simple calculator and the second one is a simple text editor (textbox and button). Calculator and text editor have their own viewmodel.

How can I set the DocumentSource of the DockingManager with multiple ViewModels?

Thank you!
Sep 5, 2013 at 2:09 AM
Yes - you need to create a generic base class for ViewModel and extend that in your CalculatorViewModel and TextEditorViewModel.