Пример #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);
        }