Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The SecondPage class subscribes to multiple ScriptNotify Events causing multiple page navigations #1

Open
AweHellYeah opened this issue Oct 16, 2014 · 0 comments

Comments

@AweHellYeah
Copy link

See this forum post on MSDN:
https://social.msdn.microsoft.com/Forums/windowsapps/en-US/8c08ecf9-7e70-4e04-9d0b-8ef6ec21e9c4/save-page-state-problem?forum=winappswithcsharp

To fix, unsubscribe to the ScriptNotify event in OnNavigatedFrom()

    protected override void OnNavigatedFrom(NavigationEventArgs e)
    {
        MyWebView.ScriptNotify -= Handle_ScriptNotify;
        base.OnNavigatedFrom(e);
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant