Following up on this question and its answer (which did solve my problem), I have a couple of questions:
- Where do I retrieve the
ViewModelManager
to pass to the constructor ofRequeryAllTheThings
? Currently, I am using theViewModelBase.ViewModelManager
property in the first view model that loads, but this seems inelegant. I tried using theServiceLocator
, but the object it returned never managed any view models. - The answer implies that there is an approach that will perform better, but I have not been able to find it in the documentation or on SO. Specifically, I need the CanExecute methods to fire for my commands when a control in a
DataGrid
changes state. What is the correct approach?