Welcome Guest Search | Active Topics | Sign In | Register

Pre loading Invisible WebView Options
Eurice
Posted: Wednesday, May 18, 2016 11:04:01 AM
Rank: Advanced Member
Groups: Member

Joined: 12/10/2014
Posts: 137
Hello there,

I want to speed up my application and i'm looking for a way to pre-load webview without affecting the user experience.

So is there a proper way to load an invisible webview and then attach it to a Window ?


For the moment I have a working prototype but it feel hacky :

I attach a webview to a window with top = 9999, So the user can't see webviews inside it preload fine.

But i'd like to only load webview and then attach it instead of preloading a whole window.


Best regards
eo_support
Posted: Wednesday, May 18, 2016 11:12:04 AM
Rank: Administration
Groups: Administration

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

The proper way of pre-loading a WebView is to create a WebView through a ThreadRunner object:

http://www.essentialobjects.com/doc/webbrowser/start/webview_no_ui.aspx

Thanks!
Eurice
Posted: Thursday, May 19, 2016 4:47:27 AM
Rank: Advanced Member
Groups: Member

Joined: 12/10/2014
Posts: 137
Thanks for the reply,

I understand that, but at some point I need to show the webview in a WPF window;
And the only way I found is by using a EO.WebBrowser.Wpf.WebControl using it's webview attribute;
But doing so i'll create a blank/useless webview when invoking WebControl.

Hope you understand what i'm trying to do here.


Regards
eo_support
Posted: Thursday, May 19, 2016 11:28:32 AM
Rank: Administration
Groups: Administration

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

In that case what you are doing is fine. We do not have an explicit interface for you to pre-loading something.

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.