Navigating between views in WPF MVVM

I am new to WPF and MVVM, and I am working on an application that has multiple views. Right now I have a view (HomePageView) shown in the shell context. Now, using the button in HomePageView, I want to load another View instead of the current HomePageView shown. After looking at google, I found something about event aggregators. I would ask someone to explain the implementation or refer to a good sample application.

+6
source share
1 answer

If your new WPF MVVM I suggest choosing a decent helper tool first

There are several options. MVVM Light, Prism, MEF

I would suggest MVVM light. Simple and easy to get up and work. Prism is not only an MVVM helper, but also functions that can help with MVVM. Not much has been done with MEF or things like Caliburn Micro.

As for an example explaining how working between views works with MVVM Light, try:

http://www.codeproject.com/Articles/323187/MVVMLight-Using-Two-Views

MVVM indicator on CodePlex:

http://mvvmlight.codeplex.com/

^^ the link has transitions to some video presentations that are worth a look

Another good sample using MVVM Light:

http://apuntanotas.codeplex.com/

This will help you get started, and you always got fooobar.com/questions/tagged / ... for specific questions :)

+5
source

All Articles