WP - reExecuted OnNavigated overrides ViewModel after Activation

Topics: Actions & Coroutines, Framework Services, Getting Started
Feb 11, 2013 at 9:39 PM
Hi Folks

I navigate to a TextInputViewModel with an initial Text:
               .WithParam(t => t.Text, "text A")
Within the View i update the "Text" Property of the ViewModel to "text ABC".
Now, If I use any ChooserTask, or a ListPicker in order to edit any other values in the viewModel, the Framework runs through OnDeactivate / OnActivate and triggers the "FrameAdapter.OnNavigated" Method. Within the "TryInjectQueryString(viewModel, page)" Method overrides the existing values in the ViewModel with the values given at the first activation. (when the page actually was navigated to). This resets the value of "Text" to "text A"

I tried persisting the values of the ViewModel with the StorageHandler but the problem lies on the repetitive execution on "OnNavigated" which overrides the "Text" with the once defined Value.

Any ideas to avoid this problem?