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);
        }
Esempio n. 2
0
 public static void RequestMainThread(Action action)
 {
     SysFunc.RequestMainThread(action);
 }