I'm working an app that has the following flow:
List -> Item Detail -> Item Editor
One of the things you can do in the Item Editor is delete the item. If this happens the you should end up back at the List.
After the deletion happens I call INavigationService.GoBack from the Item Editor ViewModel. In the Item Detail ViewModel OnNavigatedTo handler I check if the navigationMode is Back and if the item no longer exists. If so, I again call INavigationService.GoBack. This should put me back on the List.
Unfortunately the call doesn't seem to work inside the OnNavigatedTo method. I've traced it in the debugger and the call is happening but the app don't navigate. Once the Item Detail page is displayed INavigationService.GoBack will take you back to the List.
Any ideas?
-Michael O. Schoneman
List -> Item Detail -> Item Editor
One of the things you can do in the Item Editor is delete the item. If this happens the you should end up back at the List.
After the deletion happens I call INavigationService.GoBack from the Item Editor ViewModel. In the Item Detail ViewModel OnNavigatedTo handler I check if the navigationMode is Back and if the item no longer exists. If so, I again call INavigationService.GoBack. This should put me back on the List.
Unfortunately the call doesn't seem to work inside the OnNavigatedTo method. I've traced it in the debugger and the call is happening but the app don't navigate. Once the Item Detail page is displayed INavigationService.GoBack will take you back to the List.
Any ideas?
-Michael O. Schoneman