I'm trying to learn MVVM Pattern doing a simple GUI using WPF . It's just a simple plugin for Autocad with a modal window showing some information about the model.
I have two Usercontrols with their respective views and viewmodels. I'm showing these usercontrols in a single windows/dialog. One of these usercontrols needs to show some information, representing a simple List (the model) in a DataGrid.
Like I said before, the model for that user control is a existing List. I need to pass the List information to the viewmodel but I'm struggling with this. I was thinking on passing it as a parameter to the MainWindow contructor and then to the respective viewmodel but doesn't sound like a good idea.
What options do I have in this case?
I'm using MVVM Toolkit.
Thanks!