Replies: 1 comment
-
ITNOA I think maybe #2815 related to this discussion. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In Xam Forms I could prevent the back button on a per page basis by simply overriding the
OnBackButtonPressed()
method in a page's code behind.It seems that this no longer works with MAUI Prism. My page gets navigated back and I assume it is because the
PrismAppBuilder
sets the lifecycle event forOnBackPressed
and the back button always causes thenavigation.GoBackAsync()
line.Is there a way to override this and prevent any navigation?
I can't implement my own version of the lifecycle event because the
PrismWindow
is internal.And if I'm wrong in my assumption could you point me to where/how the page is navigating back?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions