Now that I have shell (working?) it does not respond to the back button

Lloyd Sheen 1,376 Reputation points
2023-02-01T18:09:43.72+00:00

When I click the back button (Android) it does not go back a level it just goes back to the Android system. I put in the following code but a back button is not visible on the view that shows the hotdog icon so it just does not work.

    <Shell.BackButtonBehavior>
        <BackButtonBehavior IsVisible="true" IsEnabled="true" ></BackButtonBehavior>
    </Shell.BackButtonBehavior
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,866 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Lloyd Sheen 1,376 Reputation points
    2023-02-01T20:31:23.5733333+00:00

    I did not realize but it makes sense that if you navigate using the main navigation it becomes the zero th level so when you navigate in the app not using the main menu it is then at a higher level.

    0 comments No comments