Welcome Guest Search | Active Topics | Sign In | Register

Restarting the WebView (new RuntimeOptions) Options
Riephi
Posted: Wednesday, December 9, 2015 10:18:37 AM
Rank: Advanced Member
Groups: Member

Joined: 7/17/2015
Posts: 53
Hi,

what's the best practice for applying new BrowserOptions to a WebView? At runtime I'd like to change the following:

Code: C#
Runtime.ExtraCommandLineArgs = "--touch-events=disabled";


to

Code: C#
Runtime.ExtraCommandLineArgs = "";


Changing during runtime seems to have no effect. Is there a best way to restart a WebView object? Manually tearing the XAML down and reinject a new WebControl and WebView seems to be too much of a hassle.

Kind regards
eo_support
Posted: Wednesday, December 9, 2015 11:24:40 AM
Rank: Administration
Groups: Administration

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

You will need to use the engine interface to do this. See here for more information:

http://www.essentialobjects.com/doc/webbrowser/advanced/engine.aspx

You will need to close the engine and then start another one, then recreate the WebViews using the new engine. Note that you can not stop an engine and then restart it (his is similar to .NET's AppDomain).

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.