开发者

webbrowser check status in WP7

开发者 https://www.devze.com 2023-03-25 10:49 出处:网络
I m using webBrowser.Navigate(uri); I want to check from the code whether the page has been loaded completely . I want to display the progress bar till the page gets l开发者_StackOverflowoaded and onc

I m using webBrowser.Navigate(uri); I want to check from the code whether the page has been loaded completely . I want to display the progress bar till the page gets l开发者_StackOverflowoaded and once the page gets loaded I have to collapse the progress bar

I m writing an app in C# for WP7

here is what I want to do

          webBrowser.Navigate(uri);
          BrowserProgressBar.Visibility = System.Windows.Visibility.Visible;

          // If web page sucessfully loaded 
          ...............
          BrowserProgressBar.Visibility = System.Windows.Visibility.Collapsed;

          // Else throw error 


You want to add event handlers for the Navigated and NavigationFailed events. You can stop your progress bar then.

0

精彩评论

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