I’m trying to ‘pause’ a HyperlinkButton in a WP7 app so that the user can confirm whether or not to leave the app and follow the link. The series of the events would look like:
- The user clicks the
HyperlinkButton MessageBoxpops up to confirm they want to leave the app and visit this external site- If the user agrees, the webpage loads; if not, the user is returned to the app
My question is: can I get HyperlinkButton to wait for the user’s response?
At the moment, I’ve hacked a solution as below:
<HyperlinkButton Tag="http://www.google.com/" Tap="ConfirmBeforeLoading()"/>
ConfirmBeforeLoading then prompts the user and, if they agree, it creates a new WebBrowserTask using the address in the Tag property.
This works, but it seems ‘hackish’. Is there any way I can use a normal HyperlinkButton with NavigateUri and just have it wait for the user’s response?
Many thanks in advance!
try this one,maybe helpfull to you,
its work for me.