This project has moved and is read-only. For the latest updates, please go here.

Queries on MVVM Light Toolkit

Dec 27, 2010 at 2:31 PM

1. I am using MVVM Light toolkit pattern and using userControl1 , userConrol2 which have respective View models. Now on UserControl1, I have say Add button and Add click , i want userControl2 view to be displayed. Would like to know How to open a userControl2 view from userControl1 views following MVVM light Toolkit?

2. I have a Master details kind of Grids on my view. First grid contains a list and On Selection Change, I display some of the elements of rows below in panel. There is one more grid on the view , for which data needs to be fetched again from the database and bind it to 2nd grid. How to achieve this?

Will be great to have sample code as well with this.

Thanking you in advance.



Dec 27, 2010 at 2:39 PM




For Point 1,

In View1 viewmodel, in Add Handler,  I tried var view2 = new Presentation.View.Controls.AddSample(); view2.Show();

Is it the correct way?

Thanks again