tags:

views:

41

answers:

1

Some basic questions, but most examples I see, only contain one view with one viewmodel and one viewmodellocator, so my questions are :

  • Does each viewmodel has it's own viewmodellocator ? (The snippet included in mvvm light toolkit for a viewmodellocator seem to imply this, as it generates a some methods eg. cleanup that has the same name for each viewmodellocator you create)
  • The views DataContext is bound to the ViewModeLocator, but how does one specify that it has an argument (eg. you want this ViewModel to retrieve a certain customer record)