navigation - Silverlight 3 Beta, NavigationService in the ViewModel -


improduct = "text">

im developing a Silverlight 3 beta navigation application, so I went with some variation of the MVVM pattern :) (All < / P>

Question: How do I navigate to a different "Navigation Page" in View Module?

Now to reduce a long story, View Module is declared as a page resource .

  Navigation: Page. Resources & gt; & lt; mvvm: LoginModel x: Key = "Data Source" D: IsDataSource = "True" & gt; & lt; / Mvvm: LoginModel & gt; & lt; / Navigation: Page.Resources & gt;  

And then a command is used to do everything with view modal for doing

  & lt ; Button x: name = "loginbutton" width = "100" margin = "8" content = "login" specs: click command = "{compulsive login prompt}" />  

Now if I try to navigate anywhere in the View model,

  this.NavigationService.Navigate (new URI ("/ view / about / .xml", Urikkind. relative));  

The navigation service is zero, I have looked around and found the article, which describes using helix 0.3 for navigation, when it was created back in sl2 days Now the Navigation control is not in existence, now the Helix model works well, and by implementing NavigationAware in View Module, you can get access to navigation contexts, and then whatever comes to you Shyk, I've tried helix, and it works.

SL3 comes with the built-in navigation support, to talk, which fixes the helix. So I do not want to use a third party framework, instead I prefer to use built in SL3 features.

Is there anything in SL3 that imitates the Helix's InVisicativeAware interface? Personally, I think the navigation service is a UI frame or UI concept attached to the page.

Another way to accomplish this is to see Navigation Service in Navigation Service to see the model when ViewModel increases an event when the navigation is going to be ... View View Model and keep the event in response to navigate.


Comments