I have a Tabbar and within there is Tab that contain two shell content. When I navigate between tab and tab bar item, everything is fine. However, if I click on a ticket on navigate to the ticket page, when I press on back and return to the main page, the calendar tab disappear.
This is my AppShell
<ShellItem Route="LoginPage">
<ShellContent ContentTemplate="{DataTemplate local:LoginPage}"
Shell.FlyoutBehavior="Disabled"
Shell.NavBarIsVisible="False"/>
</ShellItem>
<TabBar Shell.FlyoutBehavior="Disabled"
Shell.NavBarIsVisible="False"
Route="MainTabBar">
<Tab Title="Intervention"
Shell.BackgroundColor="White"
Shell.UnselectedColor="Black"
Shell.ForegroundColor="#85f189"
Route="InterventionTab"
Icon="maintenance">
<ShellContent Title="Aujourd'hui"
ContentTemplate="{DataTemplate pages:HomePage}"
Route="HomePage"/>
<ShellContent Title="Calendrier"
ContentTemplate="{DataTemplate pages:CalendarPage}"
Route="CalendarPage"/>
</Tab>
<ShellContent ContentTemplate="{DataTemplate pages:MapPage}"
Route="MapPage"
Title="Carte"
Icon="map"/>
<ShellContent ContentTemplate="{DataTemplate pages:ProfilePage}"
Route="ProfilePage"
Title="Profile"
Icon="profile"/>
</TabBar>
When I log in, the following is tiggered
await Shell.Current.GoToAsync($"//MainTabBar/{nameof(HomePage)}?Technician={UserName}");
When I click on a ticket within the Homepage, the following is trigerred
await Shell.Current.GoToAsync($"InterventionTab/{nameof(TicketPage)}?TicketID={SelectedTicket.Id}", false);
When I press back on the TicketPage and return to the Homepage, the Calendar Tab is no more present.
Calendrier Tab Visible
Calendrier Tab no more visible
Jean Ivan Steven is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.