Silverlight Navigation using Mvvm-light (oobe) + MEF?

What is the best approach for navigating between UserControls / Pages (from browser experience)? I am new to Silverlight and even new to mvvm template.

How well does the navigation platform integrate with the MVVM Light Toolkit? A snippet for overall application flow control with these two versions will be great.

The plan was to use the navigation structure for the general flow or to use Jeremy Likness's approach to managing regions ( http://csharperimage.jeremylikness.com/search/label/regions ) and replacing regions as needed. I saw a few mentions about replacing Visual Root, but it sounded like a hack to me.

Any advice, snippets or push in a general direction is welcome.

Thank.

+5
source share
3 answers

You may find the following post helpful: MVVM backlit SL4 navigation template

+1
source

I am struggling with the same thing. However, I am distracted from the "NavigationService" because, it is claimed, the log keeps a reference to an object in memory or something that I read somewhere.

I am trying to use a frame in the main window and using mvvm light to send navigation messages to the window to change the frame.

Edit: I get it.

In the main window (the code is behind, not the viewmodel) I added Messenger.Default.Register (Of NotificationMessage (Of NavMsg)) ...

Messenger.Default.Send(Of Notificationmessage (Of NavMsg))...

NavMsg, uri .

T4 /viewmodel mvvmlight, . http://dl.activeaspsoftware.net/dl.aspx?f=MvvmLightCodeTemplates.zip

0
0

All Articles