예제 #1
0
 public override void Show(MvxViewModelRequest request)
 {
     if (request.PresentationValues?["NavigationCommand"] == "StackClear")
     {
         CurrentFragmentManager.PopBackStack();
     }
     base.Show(request);
 }
예제 #2
0
        public override void Show(MvxViewModelRequest request)
        {
            if (request.PresentationValues?[Constants.NavigationCommandKey] == Constants.NavigationCommandClearStackValue)
            {
                for (int i = 0; i < CurrentFragmentManager.BackStackEntryCount; i++)
                {
                    CurrentFragmentManager.PopBackStack(null, FragmentManager.PopBackStackInclusive);
                }
            }

            base.Show(request);
        }