|
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 :)
|
|
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!
|
|
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
|
|
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
|
|