List icon 目录

发布日期 2021年09月24日

DotNetBrowser 2.9

What’s new

Chromium 92

The Chromium engine has been upgraded to version 92.0.4515.159.

Load progress event

The INavigation interface has been extended with the LoadProgressChanged event. It allows getting notifications about load progress:

browser.Navigation.LoadProgressChanged += (s, e) =>
{
    //The value indicating the loading progress of the web page.
    double progress = e.Progress;
};

Mouse events

We added the recognition of the additional (back/forward) mouse buttons. Here is how you can use the new feature to suppress the corresponding mouse events, for example:

browser.Mouse.Pressed.Handler =
    new Handler<IMousePressedEventArgs, InputEventResponse>(e =>
    {
        if (e.Button == MouseButton.Back || e.Button == MouseButton.Forward)
        {
            return InputEventResponse.Suppress;
        }
        else
        {
            return InputEventResponse.Proceed;
        }
    });

browser.Mouse.Released.Handler =
    new Handler<IMouseReleasedEventArgs, InputEventResponse>(e =>
    {
        if (e.Button == MouseButton.Back || e.Button == MouseButton.Forward)
        {
            return InputEventResponse.Suppress;
        }
        else
        {
            return InputEventResponse.Proceed;
        }
    });

JavaScript-.NET Bridge

Now you can work with .NET dictionaries having integer or string keys or other .NET objects having an indexer with a single integer or string parameter in the JavaScript code:

IJsObject document = Browser.MainFrame.ExecuteJavaScript<IJsObject>("document").Result;
Dictionary<string, string> dictionary = new Dictionary<string, string>
{
    {"key1", "value1"}, 
    {"key2", "value2"}
};
document.Properties["dotNetDictionary"] = dictionary;

JavaScript code:

var value = document.dotNetDictionary["key1"];

Fixed issues

  • Keyboard focus being lost in the WPF application when reconnecting to the remote computer via RDP.
  • Focus flickering when launching multiple BrowserView instances.

下载 DotNetBrowser 2.9

请提供您的电子邮箱地址,我们会尽快将下载说明发送给您。

发送...
EmailBox 请检查您的收件箱。

我们无法发送电子邮件。请重试

如果您已经是我们的注册客户,您无需任何操作,即可轻松享受此次更新。

如果您希望深入了解并体验我们的产品,您可以申请评估许可证。

获取免费 30 天体验
Go Top