hi
I can’t understand why styles are not specified for the second window (popup), which is called from the first popup.
For the application itself and for the first popup, the styles work
Code: C#
options.UserStyleSheet = CssCode;
engine.Options.SetDefaultWebViewOptions(options);
webview.Engine = engine;
webview.Engine.Start();
code for the new window call event
Code: C#
private void WebView1_NewWindow(object sender, NewWindowEventArgs e)
{
Form popup = new Form
{
Text = Text,
...
};
e.WebView.BeforeContextMenu += WebView1_BeforeContextMenu;
e.WebView.NewWindow += WebView1_NewWindow;
e.WebView.Closed += Webview_Closed;
e.WebView.LoadCompleted += WebView1_LoadCompleted;
e.WebView.IsReadyChanged += WebView1_IsReadyChanged;
e.WebView.CertificateError += Webview_CertificateError;
WebControl popupWebControl = new WebControl
{
Dock = DockStyle.Fill,
WebView = e.WebView
};
popup.Controls.Add(popupWebControl);
e.Accepted = true;
popup.Show();
}