public static void BackTo <T>() where T : Page { if (AdmissionManager.busing) { return; } var name = typeof(T).Name; var targetPage = PageStack.Find(name); if (targetPage == null) { // page not in stack, can't pop to return; } var popedList = PageStack.PopUtil(targetPage); // var top = Top; // while(typeof(T) != top.GetType()) // { // UIEngine.Back(); // top = Top; // if(top == null) // { // break; // } // } foreach (var p in popedList) { pagePool.Put(p.name, p); } }