I’m trying to learn MVVM and as a new person without a tutor, sometimes it gets sooo confusing. right now I have this problem:
** in one window, I have used 3 different views from different modelviews.
** each view is for selecting one item from a branch and we will traverse the tree.
** in first View, I choose my book
** the 2nd view will show pages of that book
** the last view I want it to show exercises of that page.
so far I was able to bind the 1st view to the Books. now, how should I bind the second view’s source to the 1st one’s slectedItem ?
MVVM Problem http://clickasun.ir/8283kitchen/images/mvvmproblem.jpg
OK I want to thank anyone who read this and tried to help, Specially yo guys “Blindmeis, Jen H”
thank you.
I know this scenario had to be so general, I just couldnt find it.
so I found 2 approaches to it that both can be good solutions.
Use Microsoft Prism. (Its a pattern to make modular programs in WPF with ease)
MSDN LINK
Another LINK
Use Master Detail Pattern
Here it is clear
So I got mine solved. Hope it would be useful for you too.