WinRt WebView control handling navigation within the control

后端 未结 1 1052
情话喂你
情话喂你 2020-12-17 01:30

I have a Metro app using a WebView control. I\'m using NavigateToString to load a html file which may contain hyperlinks. What I then want to do is detect whe

相关标签:
1条回答
  • 2020-12-17 02:19

    Unfortunately this isn't possible directly because WebView does not include events like Navigating (which were present in Windows Phone).

    Luckily Nick Randolph (brilliant Windows Phone and Windows 8 developer) has created a workaround using script events. He's got a great write up on his blog:

    http://nicksnettravels.builttoroam.com/post/2012/04/21/Limitations-of-the-WebView-in-Windows-8-Metro-Apps.aspx

    0 讨论(0)
提交回复
热议问题