/// <summary> /// Pops the back stack of all entries upto but not including the tag /// </summary> /// <param name="tag"></param> public void PopBackStackToTag(string tag) { int backstackCount; Android.Support.V4.App.FragmentManager fm = SupportFragmentManager; backstackCount = fm.BackStackEntryCount; if (backstackCount == 0) { return; } for (int i = backstackCount; i > 0; i--) { if (fm.GetBackStackEntryAt(i - 1).Name == tag) { break; } fm.PopBackStackImmediate(); } }