I start with Caliburn.micro and I'm a little confused. Let's say I have a user interface with 2 panels, for example. (this is a fake sample) ClientView and CustomerView and 2 corresponding VMs, CustomerViewModel and CustomerViewModel.
Now, let's say I want to include both panels in the main shell, which should have access to all data elements of type VM, for example:
public class MainViewModel { private CustomerViewModel _vmCustomer; private CustomersViewModel _vmCustomers; ... }
How viewmodels are created by CM, how can I connect my main shell to each instance of them? Or is this the wrong approach? I donβt need a conductor in its canonical sense, because I donβt activate or deactivate the set of panels, as in MDI: I have an SDI interface with some panels, each of which is supported by its virtual machine, and the main shell that should manipulate them. What is the correct approach in such a scenario?
source share