public U9Transition GetPushViewTransition (U9View newView, bool hideOldView = true, bool force = false, bool hideAfter = false )
{
U9View oldView = null;
if (viewStack.Count > 0) {
oldView = viewStack.Peek ();
}
viewStack.Push (newView);
U9Transition hideOldViewTransition = null, displayNewViewTransition = null;
if (oldView) {
oldView.DisableInteraction ();
if (hideOldView) {
hideOldViewTransition = oldView.GetHideTransition (force);
}
}
displayNewViewTransition = newView.GetDisplayTransition (force);
if (hideAfter) {
return U9T.S (displayNewViewTransition,hideOldViewTransition);
} else {
return U9T.S (hideOldViewTransition, displayNewViewTransition);
}
}