none
[WP8] web browser control in windows phone 8 RRS feed

Answers

  • You can create one dynamically, but it has to be on a UI thread. 

    protected override void OnNavigatedTo(NavigationEventArgs e)
            {
                base.OnNavigatedTo(e);
    
                WebBrowser W = new WebBrowser();
                W.Height = 300;
                W.Width = 300;
                W.Visibility = System.Windows.Visibility.Collapsed;
                W.Navigate(new Uri("http://www.microsoft.com"));
            }


    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Friday, June 26, 2015 1:03 PM

All replies

  • You can create one dynamically, but it has to be on a UI thread. 

    protected override void OnNavigatedTo(NavigationEventArgs e)
            {
                base.OnNavigatedTo(e);
    
                WebBrowser W = new WebBrowser();
                W.Height = 300;
                W.Width = 300;
                W.Visibility = System.Windows.Visibility.Collapsed;
                W.Navigate(new Uri("http://www.microsoft.com"));
            }


    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Friday, June 26, 2015 1:03 PM
  • hi matt,

    i have already tried with this code but the web browser should call asynchronously or globally it should call...because some time i will get a message from the Sever to webpage javascript .i have to  handle the message and have to perorm some action.help me How to this?

    Thanks in Advance,

    A.Mohammed Rizwan

    Tuesday, July 14, 2015 9:24 AM