I have the following appshell
<?xml version="1.0" encoding="UTF-8" ?>
<Shell
x:Class="myApp.AppShell"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:myApp.Pages"
Shell.FlyoutBehavior="Disabled"
Title="myApp">
<ShellContent
Title="Home"
ContentTemplate="{DataTemplate local:HomePage}"
/>
<TabBar x:Name="theTabBar" Route="itemDetails" Title="Item Details" NavigationPage.HasNavigationBar="True">
<Tab Title="Details" Icon="details.png">
<ShellContent ContentTemplate="{DataTemplate local:DetailPage}" />
</Tab>
<Tab Title="Notes" Icon="notes.png">
<ShellContent ContentTemplate="{DataTemplate local:NotesPage}" />
</Tab>
</TabBar>
</Shell>
When the app starts the home page is loaded correctly. From the home page, a user can navigate to a list page and from there to the detail page (TabBar).
My problem is that there is no backbutton when the detail page is shown. Clicking on Android Back hides the app.
I am porting from Xamarin and the app uses the previous TabbedPage to show lots of detail (very data intensive). I cannot use this with Shell Navigation so am trying to get TabBar to work. Quite frustrated at this stage and would appreciate any pointers.
Application.Current.MainPage = new MyTabbedPage();when you want to navigate to TabbedPage.