Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Shell, load all tabbed pages at once. Forms 4

$
0
0

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


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>