Hi,
I've been trying on and off to fix this for a week with no luck. Any help would be much appreciated...
So I've tried the below code in both OnNavigatedTo and Hub_Loaded with no luck, the code should be fairly self explanatory, I want to scroll to different sections of the Hub depending on where a user has come back from:
PageStackEntry previousPage = Frame.BackStack.LastOrDefault();
if (previousPage == null)
{
return;
}
if (Frame.BackStack.LastOrDefault().SourcePageType.Equals(typeof(Grounds)))
{
//this.MainHub.ScrollToSection(HubGrounds);
this.MainHub.ScrollToSection(MainHub.Sections[1]);
}
base.OnNavigatedTo(e);
Thanks for any help in advance!