Answered by:
open a url in WebView

Question
-
I'm new to windows store devp . I would like to how to open a url in a page in c# using webview
73 kc8pdr http://www.ohioham.com
- Edited by kc8pdr Monday, November 11, 2013 12:23 AM I fount the button comand
Saturday, November 9, 2013 9:26 PM
Answers
-
Hi kc8pdr,
How to open a url in webview? Take a look at the documentation of the WebView class, you could use Navigate or NavigateToLocalStreamUri to open url in the page.
Best Regards,
--James
<THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
Thanks
MSDN Community Support
Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.- Marked as answer by kc8pdr Monday, November 11, 2013 2:57 AM
Monday, November 11, 2013 12:58 AMModerator -
If you have the URL, you could either define in the XAML as below:
<WebView Source="http://www.microsoft.com"/>
or set it in your C# code:
Uri targetUri = new Uri(YourAddress); WebView.Navigate(targetUri);
I'm not quite sure why you need event handler here, could you tell me your scenario?
--James
<THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
Thanks
MSDN Community Support
Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.- Marked as answer by kc8pdr Monday, November 11, 2013 2:57 AM
Monday, November 11, 2013 2:10 AMModerator
All replies
-
Hi kc8pdr,
How to open a url in webview? Take a look at the documentation of the WebView class, you could use Navigate or NavigateToLocalStreamUri to open url in the page.
Best Regards,
--James
<THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
Thanks
MSDN Community Support
Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.- Marked as answer by kc8pdr Monday, November 11, 2013 2:57 AM
Monday, November 11, 2013 12:58 AMModerator -
after I add the webview witch event handler do I use ?
73 kc8pdr http://www.ohioham.com
Monday, November 11, 2013 1:55 AM -
If you have the URL, you could either define in the XAML as below:
<WebView Source="http://www.microsoft.com"/>
or set it in your C# code:
Uri targetUri = new Uri(YourAddress); WebView.Navigate(targetUri);
I'm not quite sure why you need event handler here, could you tell me your scenario?
--James
<THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
Thanks
MSDN Community Support
Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.- Marked as answer by kc8pdr Monday, November 11, 2013 2:57 AM
Monday, November 11, 2013 2:10 AMModerator