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); } }
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); } }
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); }
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); }