Ejemplo n.º 1
0
        public void GoBack(TPageIdentifier stackIdentifier, object args = null)
        {
            var result = ResolveStackManager(stackIdentifier).GoBack(args);

            if (result.WentBack)
            {
                WentBack?.Invoke(this, result.TargetPage);
                CurrentPage = result.TargetPage;
            }
            else
            {
                FailedToGoBack?.Invoke(this, stackIdentifier);
            }
        }
Ejemplo n.º 2
0
        public void GoBack(object args = null)
        {
            var result = _stackManagers.First().Value.GoBack(args);

            if (result.WentBack)
            {
                WentBack?.Invoke(this, result.TargetPage);
                CurrentPage = result.TargetPage;
            }
            else
            {
                FailedToGoBack?.Invoke(this, default);
            }
        }
Ejemplo n.º 3
0
        public bool OnBackRequested(TPageIdentifier stackIdentifier)
        {
            var result = ResolveStackManager(stackIdentifier).OnBackRequested();

            if (result.WentBack)
            {
                WentBack?.Invoke(this, result.TargetPage);
                CurrentPage = result.TargetPage;
            }
            else
            {
                FailedToGoBack?.Invoke(this, stackIdentifier);
            }

            return(result.WentBack);
        }
Ejemplo n.º 4
0
        public bool OnBackRequested()
        {
            var result = _stackManagers.First().Value.OnBackRequested();

            if (result.WentBack)
            {
                WentBack?.Invoke(this, result.TargetPage);
                CurrentPage = result.TargetPage;
            }
            else
            {
                FailedToGoBack?.Invoke(this, default);
            }

            return(result.WentBack);
        }