How to Reset ShellItem Tab selection every time when click on AppShell ShellItem tab

Bhuwan 231 Reputation points
2022-06-19T04:18:05.25+00:00

Hi

How to Reset ShellItem Tab selection every time when click on AppShell ShellItem tab

<ShellItem Route="main">
<Tab Title="A" Icon="{FontImage FontFamily={StaticResource MaterialFontFamily},Glyph={x:Static helpers:MaterialFontIcons.AlphaABox},Size=44,Color='White'}">
<ShellContent ContentTemplate="{DataTemplate page:APage}" />
</Tab>
<Tab Title="B" Icon="{FontImage FontFamily={StaticResource MaterialFontFamily},Glyph={x:Static helpers:MaterialFontIcons.AlphaTBox},Size=44,Color='White'}">
<ShellContent ContentTemplate="{DataTemplate page:BPage}" />
</Tab>
</ShellItem>

if i click A page and inside A page i click another navigation in same page then i click B page after that again i click A page then root page will display not previous shell navigation page means whenever i click on tab then every time should be reset and set page APage open.

Thanks

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,824 questions
{count} votes