开发者

How do I return to my Windows Phone app from a YouTube video?

I have a Windows Phone 7 app that launches a YouTube video. It does this by creating a WebBrowserTask and setting it's url to "vnd.youtube:" + id. This opens a new web browser which, then, launches the YouTube application.

Once they've seen the video, the user should be able to click the "Back" button t开发者_运维知识库o return to the application. However, when they click "back" it just returns them to the WebBrowserTask which then re-launches the video.

Does anyone know a way I can get them back to the app?


You could try to do this using a webbrowser control embedded in one of your Xaml pages. This would allow you to detect the back operation and to navigate within your app accordingly.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜