This project is read-only.

Navigation

WindowsPhoneMvp uses an INavigationService interface to define the navigation operations available from the Presenter.

NavigationService.png

Navigate to the strongly typed views, or view interfaces.
Navigate.ToView<ISecondView>();

Easily setup an ICommand property for navigation.
Model.NavigatingToViewTwo = Navigate.ByCommand<ISecondView>();

Passing parameters:
Navigate.ToView<IGpsView>(x => x.With("Activity", Model.SelectedActivity.Name)
    .With("Parameter2", hasParameter.ToString()));

Navigation will even work by Navigation to the generic View interface with ViewModel:
Model.NavigatingToViewTwo = Navigate.ByCommand<IView<SecondViewModel>>();

Last edited May 11, 2011 at 2:43 PM by brendan, version 2

Comments

No comments yet.