eo_support wrote:Hi,
You won't be able to use a different Engine with WebView.Preload. However if you just want to use a different proxy but is OK with using the default engine, you can set the Proxy on EO.WebEngine.EngineOptions.Default before you call WebView.PreLoad.
You can also use WindowInteropHelper.EnsureHandle() to ensure the handle is being created for your second window before you display it. The WebView will be created when the window handle is created.
Thanks!
Hi,I use WindowInteropHelper.EnsureHandle() in a demo project,But it still doesn't load the page until the window opens.
MainWindow(.cs):
EOWindow eoWnd;
public MainWindow()
{
InitializeComponent();
eoWnd = new EOWindow();
var eoWndHand = new System.Windows.Interop.WindowInteropHelper(eoWnd);
eoWndHand.EnsureHandle();
}
private void button_Click(object sender, RoutedEventArgs e)
{
eoWnd.Show();
}
EOWindow(.xaml)
<eo:WebControl>
<eo:WebControl.WebView>
<eo:WebView Url="https://www.google.com/"></eo:WebView>
</eo:WebControl.WebView>
</eo:WebControl>