|
Rank: Newbie Groups: Member
Joined: 4/27/2015 Posts: 6
|
Hi, I have a problem with this event, it runs only once when I navigate a website from:
Code: C#
webView1.Url = "www.google.com";
I would like it to pops up each time when a website is refreshed(but only once when whole document is completed, not like IsLoadingChanged event). Do you know the simplest way how to do it ? Thx
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,273
|
Hi,
Currently LoadCompleted event is only fired for requests that are explicitly loaded from your code (by setting Url property, or by calling one of the LoadXXX function such as LoadUrl). It does not fire for user initiated navigation. We are working on this and our next version will fire LoadCompleted event for all requests. In the mean time, if you can let us what you need LoadCompleted event for, then we will see if it is possible to achieve that another way.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 4/27/2015 Posts: 6
|
Hi, its fine I have already found another way. I am calling the method using Time something like that:
Code: C#
void IsLoadingChanged(arg1,arg2)
{
if(timer.enabled == false)
timer.start();
}
void LoadingCompleted(arg1,arg2)
{
//...some update()
}
void tick()
{
if(webView.isLoading == false)
{
LoadingCompleted(null,null);
timer.stop();
}
}
I asked the question because I thought there is a method which maybe I missed.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,273
|
Great. Glad to hear that you have found a working solution!
|
|