This project is read-only.

NavigationService.GoBack() urgent question

Jul 18, 2011 at 11:17 PM

Hi all.

When I call NavigationService.GoBack(); it doesn't reload the form.

For example I have Form 1 which is my Login form, then I Navigate to Form 2 to the Settings Form. When I have saved my Settings on Form 2 I wish it to NavigationService.GoBack() to Form 1 and show the new settings that are displayed.

Is there any call I can make where the Navigate Service Goes Back AND forces the form to re-initialise or intercept the new settings?


Like that:

Controller 1 call Controller 2

Controller 2 needs to call Controller 1 : This step I can't create a new Controller 1, or I will get a loop, right?

{ Controller 1 (go back is Controller 2); Controller 2 (go back is Controller 1) }


Please, this issue is too urgent!



Version System.Mobile.Mvc: 1.0.4213.19181

Jul 19, 2011 at 9:42 AM
Edited Jul 19, 2011 at 9:44 AM


The framework at its current state doesn't (i think) support Going Back and reinitialize. 

I also found this need, and i implemented quite easy.

Just go to the Navigator.cs and add the following method:


public void GoBackAndInitialize(params object[] parameters)

Now when you call GoBackAndInitialize, it will fire up OnInitialize(...).

You can put the logic here for refresh.

-- Gonçalo

Jul 19, 2011 at 1:17 PM

It works! 

Thanks Gonçalo.


Please CodePlex, fix this problem.