user3386180
user3386180

Reputation:

Windows Store App: Return to a Hub Section

I have a Windows Store App (WP 8.1) with a Hub as its main page. Users can explore different parts of the app from the hub sections.

When the users return to the main page they are not by default taken back to the same hub section where they left off but instead to the default hub section (the "first" one). That is a bit ugly in terms of user experience as it breaks the flow.

There is one way to take the user back to the last visited section by changing the DefaultSectionIndex as described e.g. here. Problem with that approach is that it changes the composition of the main page - the respective section becomes the leftmost section, and header and background picture align with that.

Is there a way to return the user to the last viewed section without changing the order of the sections?

Upvotes: 0

Views: 271

Answers (1)

Daniel Gary
Daniel Gary

Reputation: 507

Set the page's NavigationCacheMode="Required" either in XAML or code behind. That should address your issue.

Upvotes: 1

Related Questions