For my app 11t for Mastodon (open source network somewhat like Twitter) I have a couple of timelines (home, notifications, public timeline) and detail pages, such as a Post Context, a page for a Hashtag, a page for a User Profile. This is handled by a Navigator
and works well; the detail pages are re-used, while the timelines keep their data.
No I would like to be able to swipe through the timelines; a <PageControl>
seems the answer. Yet, if I combine the Navigator and the PageControl, I cannot swipe back from a detail page.
<Router ux:Dependency="router" />
<Navigator DefaultPath="splash">
<SplashPage ux:Name="splash" router="router" SwipeBack="None" />
<LoginPage ux:Name="login" router="router" TopNavBar="TopNavBar" />
<PageControl AllowedSwipeDirections="Both">
<TimelinePage ux:Name="timeline" router="router" TopNavBar="TopNavBar" />
<NotificationsPage ux:Name="notifications" router="router" TopNavBar="TopNavBar" />
<TimelinePage ux:Name="favourites" router="router" TopNavBar="TopNavBar" />
<TimelinePage ux:Name="publictimeline" router="router" TopNavBar="TopNavBar" />
</PageControl>
<UserProfilePage ux:Template="userprofile" router="router" TopNavBar="TopNavBar" />
<HashtagPage ux:Name="hashtag" router="router" TopNavBar="TopNavBar" />
<PostPage ux:Template="postcontext" router="router" TopNavBar="TopNavBar" />
</Navigator>
I hope someone has a better or more elegant solution.