I'm using Xamarin and MvvmCross to create an Android app. I'm trying to navigate BACK from my child ViewModel (view, activity, whatever) to my parent ViewModel. Lets say I have backstack A->B->C and I'm trying to navigate from C to A having C and B destroyed and A reactivated.
Here I can use FLAG_ACTIVITY_CLEAR_TOP and navigation using Intent class:
var startActivityIntent = new Intent(this, typeof(MainView));
startActivityIntent.SetFlags(ActivityFlags.ClearTop);
StartActivity(startActivityIntent);
and it works fine (except of the fact that my parent activity A is destroyed and created new instead of restarted.
But I need navigation logic to be in my ViewModel (core library, shared across all platforms).
What is the correct way to navigate back to existing activity from PCL (using MvxViewModel.ShowViewMode() method)
Thanks!