I'm using the prerelease of Xamarin Forms 4, and am trying out App Shell.
I have my pages setup like this for bottom tab navigation:
<ShellItem>
<ShellSection Title="Stats" Icon="tab_feed.png">
<ShellContent ContentTemplate="{DataTemplate local:Spotlight.StatsPage}" />
</ShellSection>
<ShellSection Title="Upcoming" Icon="tab_about.png">
<ShellContent ContentTemplate="{DataTemplate local:Spotlight.UpcomingPage}" />
</ShellSection>
<ShellSection Title="By Month" Icon="tab_about.png">
<ShellContent ContentTemplate="{DataTemplate local:Spotlight.ByMonthPage}" />
</ShellSection>
<ShellSection Title="By Community" Icon="tab_about.png">
<ShellContent ContentTemplate="{DataTemplate local:Spotlight.StatsPage}" />
</ShellSection>
<ShellSection Title="Recent" Icon="tab_about.png">
<ShellContent ContentTemplate="{DataTemplate local:Spotlight.StatsPage}" />
</ShellSection>
</ShellItem>
My issue is, each page is loaded after you click on the tab, and then also reloads when going back to the tab. I'm hoping to somehow load all of these pages at once and just switch between them, the same way TabbedPage
works. Is there any way to do this with AppShell?
Thanks