Welcome Guest Search | Active Topics | Sign In | Register

Setting the IsLoadingChanged Property to a method in my Viewmodel Options
Claus
Posted: Thursday, January 23, 2014 7:10:08 AM
Rank: Newbie
Groups: Member

Joined: 1/23/2014
Posts: 2
Hey,

thank you for the work you invested coding that controls.

I have a problem using your Webbrowser:
I am trying to use the WebControl / WebView classes without any gui (xaml, form...), e.g in my Code behind or my viewmodel. Is there any way? I tried it, but my page isnt loading. The IsLoadingChanged Event is only invoked once, right after I set the webView URL. It never is invoked again, no matter how long I wait.

Is there anything I can do to make it work without a gui? I only need it to open some sites and get some img urls for me, so its not necessary to add it to my View...

Best regards :)
eo_support
Posted: Thursday, January 23, 2014 8:36:17 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

Using without UI is not the designed purpose of the WebView control and is not officially supported. So I would recommend you to use some other methods to achieve your goal. Sorry about it!

Thanks!
Claus
Posted: Friday, January 24, 2014 6:34:39 AM
Rank: Newbie
Groups: Member

Joined: 1/23/2014
Posts: 2
Hey,

thanks for the answer.

So, how do I set the subscribe IsLoadingChanged Event in my viewmodel?

Interaction Triggers won't work, because WebView is not inheriting from Dependency Object.

BR,

Claus
eo_support
Posted: Friday, January 24, 2014 8:21:06 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

IsLoadingChanged is a standard .NET event. Thus you subscribe it the same way as with any other standard events. It has nothing to do with Dependency Object.

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.