Exemplo n.º 1
0
        protected override bool OnBackButtonPressed()
        {
            var ret = base.OnBackButtonPressed();

            if (ret)
            {
                return(true);
            }

            //if (ModalViewControllerFunc.HasOpenModalWindow())
            //{
            //	var currentModalWindow = ModalViewControllerFunc.GetLastModalWindow();
            //	SysFunc.RequestMainThread(async () =>
            //	{
            //		await (currentModalWindow as IModalViewServiceSupport2).OpenerModalService.ModalWindowCloseWithReturn(false);
            //	});
            //	return true;
            //}

            SysFunc.RequestMainThread(async() =>
            {
                await NavFunc.Pop();
            });
            return(true);
        }
Exemplo n.º 2
0
 public static void RequestMainThread(Action action)
 {
     SysFunc.RequestMainThread(action);
 }