Logo
My Account |  Site Map | Contact Us  
Welcome Guest Search | Active Topics | Sign In | Register

Webview blank until loaded Options
adi65
Posted: Tuesday, November 19, 2019 6:36:46 PM
Rank: Newbie
Groups: Member

Joined: 6/26/2019
Posts: 4
So my WPF application defines a webview in it's main.xaml file. This is also the entry point of my application. When the constructor of this class is called I want to load a html file into this webview. This webview is actually the full window. The loading time takes ~ 1sec but the webview is rendered in white as long as it's not fully loaded. I tried to use LoadHtmlAndWait() but this won't work (webview will never be rendered, not even in white)..
eo_support
Posted: Wednesday, November 20, 2019 8:48:03 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 21,737
Hi,

This is normal. It does take a little time to initialize the browser engine when it first loads. You won't be able to load anything until that step has completed. So there is no way to speed that step up. If that is a serious issue for you, you can design some kind of "distractions" such as a "please wait..." splash screen to temporarily distract the user's attention.

Thanks!
Filip
Posted: Tuesday, November 26, 2019 4:04:41 AM
Rank: Newbie
Groups: Member

Joined: 3/13/2019
Posts: 6
Is it possible to change the default white background to another color?
eo_support
Posted: Tuesday, November 26, 2019 10:49:21 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 21,737
Unfortunately no. :(


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.