Hi,
This is an analogy for my case (where i use Model-View-Controller-ViewModel approach where most VM logic implemented in controller)
: i have CustomerViewModel which is the VM for CustomerView. now when i select certain customerID from a list (in another view)
so the details of that customer are displayed (CustomerName, Address, ....) in a new tap in the main region. i use MEF to inject CustomerViewModel into the CustomerController
This is an analogy for my case (where i use Model-View-Controller-ViewModel approach where most VM logic implemented in controller)
: i have CustomerViewModel which is the VM for CustomerView. now when i select certain customerID from a list (in another view)
so the details of that customer are displayed (CustomerName, Address, ....) in a new tap in the main region. i use MEF to inject CustomerViewModel into the CustomerController
>in the controller how i get reference to the CustomerViewModel instance of the active CustomerView as i need to get data from that instance to use it in another scenario
>if a command (AddCustomerCommand) in the VM is fired how to handle that command in the controller so that the Commands in the VM are only placeholders for the view and controller listen to the event of command firing and handle it and return the result to the VM via the injected instance.
Thank you very much for bearing with us.