public static Task <object> Show(IControlAwait view, bool isCrossPage, bool isIgnoreBack, Action <AwaitableContainer> onOpened, Action <AwaitableContainer> onClosed, IBackContainerInterface page = null) { if (page == null) { page = Window.Current.Content as IBackContainerInterface; } if (view == null) { return(Task.FromResult <object>(null)); } var _container = new AwaitableContainer() { Content = view, IsCanCross = isCrossPage, IsIgnoreBack = isIgnoreBack }; if (onOpened != null) { _container.OnOpened += onOpened; } if (onClosed != null) { _container.OnClosed += onClosed; } view.AwaitableContainer = _container; page.OpenBackAble(_container); return(_container.WaitDataAsync()); }
public static Task <object> Show(IControlAwait view, bool isIgnoreBack = false, IBackContainerInterface page = null) { return(Show(view, false, isIgnoreBack, null, null, page)); }