DotNetBrowser 1.13.0
Prefix ReservedDotNetBrowser 1.x is no longer officially supported by TeamDev:
https://dotnetbrowser-support.teamdev.com/docs/guides/migration/v1-v2.html#how-long-will-dotnetbrowser-version-1x-be-supported
See the version list below for details.
dotnet add package DotNetBrowser --version 1.13.0
NuGet\Install-Package DotNetBrowser -Version 1.13.0
<PackageReference Include="DotNetBrowser" Version="1.13.0" />
paket add DotNetBrowser --version 1.13.0
#r "nuget: DotNetBrowser, 1.13.0"
// Install DotNetBrowser as a Cake Addin
#addin nuget:?package=DotNetBrowser&version=1.13.0
// Install DotNetBrowser as a Cake Tool
#tool nuget:?package=DotNetBrowser&version=1.13.0
A Chromium-based WPF/WinForms component that can be embedded into your .NET application to display modern web pages built with HTML5, CSS3, JavaScript, Silverlight etc.
To be able to use DotNetBrowser, you should obtain a licence by filling a form at https://www.teamdev.com/dotnetbrowser#evaluate
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net is compatible. |
This package has no dependencies.
NuGet packages (2)
Showing the top 2 NuGet packages that depend on DotNetBrowser:
Package | Downloads |
---|---|
DotNetBrowser.Wpf
A Chromium-based WPF component that can be embedded into your .NET application to display modern web pages built with HTML5, CSS3, JavaScript etc. You can obtain a free 30-day trial by filling a form at https://www.teamdev.com/dotnetbrowser#evaluate |
|
DotNetBrowser.WinForms
A Chromium-based WinForms component that can be embedded into your .NET application to display modern web pages built with HTML5, CSS3, JavaScript etc. You can obtain a free 30-day trial by filling a form at https://www.teamdev.com/dotnetbrowser#evaluate |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on DotNetBrowser:
Repository | Stars |
---|---|
Necrobot-Private/NecroBot
NecroBot2
|
Version | Downloads | Last updated |
---|---|---|
2.26.2 | 343 | 4/24/2024 |
2.26.1 | 704 | 3/28/2024 |
2.26.0 | 1,236 | 2/27/2024 |
2.25.1 | 711 | 1/22/2024 |
2.25.0 | 2,621 | 12/27/2023 |
2.24.2 | 1,554 | 11/22/2023 |
2.24.1 | 1,524 | 10/20/2023 |
2.24.0 | 1,935 | 10/3/2023 |
2.23.3 | 1,122 | 9/6/2023 |
2.23.2 | 1,047 | 8/3/2023 |
2.23.1 | 2,206 | 6/22/2023 |
2.23.0 | 3,855 | 5/25/2023 |
2.22.1 | 832 | 4/27/2023 |
2.22.0 | 2,067 | 3/23/2023 |
2.21.0 | 2,438 | 2/27/2023 |
2.20.1 | 1,703 | 2/7/2023 |
2.20.0 | 1,344 | 12/28/2022 |
2.19.0 | 949 | 12/5/2022 |
2.18.0 | 4,567 | 10/21/2022 |
2.17.0 | 1,567 | 10/5/2022 |
2.16.1 | 2,735 | 8/23/2022 |
2.16.0 | 2,093 | 8/8/2022 |
2.15.1 | 2,395 | 6/17/2022 |
2.15.0 | 1,413 | 6/14/2022 |
2.14.0 | 3,481 | 4/29/2022 |
2.13.1 | 3,218 | 4/12/2022 |
2.13.0 | 1,415 | 4/7/2022 |
2.12.0 | 2,755 | 3/23/2022 |
2.11.0 | 9,539 | 1/14/2022 |
2.10.0 | 4,248 | 11/18/2021 |
2.9.0 | 16,232 | 9/24/2021 |
2.8.0 | 2,818 | 8/20/2021 |
2.7.0 | 1,680 | 7/26/2021 |
2.6.0 | 3,933 | 5/27/2021 |
2.5.0 | 4,105 | 4/7/2021 |
2.4.0 | 3,683 | 3/2/2021 |
2.3.0 | 7,311 | 11/26/2020 |
2.2.0 | 4,561 | 9/9/2020 |
2.1.1 | 8,167 | 7/2/2020 |
2.1.0 | 1,464 | 6/18/2020 |
2.0.0 | 6,167 | 2/27/2020 |
This version of the library was extended with the features, allowing to intercept all the URL requests for both standard URL schemes (such as http, https, ftp, file), and custom schemes declared in your application. After registering a protocol handler for a scheme, all the URLs with the specified scheme loaded into the Browser will be handled by this handler.
Protocol Handler
Implementing a new custom protocol handler in DotNetBrowser is pretty simple:
C#
public class HttpsHandler : IProtocolHandler
{
//This method should provide the response for the specified request
public IUrlResponse Handle(IUrlRequest request)
{
string htmlContent = "Request Url: " + request.Url + "\n";
return new UrlResponse(Encoding.UTF8.GetBytes(htmlContent));
}
}
This custom protocol handler can then be installed for the particular BrowserContext:
C#
browser.Context.ProtocolService.Register("https", new HttpsHandler());
After the handler is installed, any URL having the https scheme will be handled by this custom handler.
See an example.
BrowserPreferences.CrashDumpDir property
The BrowserPreferences.CrashDumpDir is a read-write static property which can be used to specify the directory for storing the generated Chromium crash dumps. This property should be specified before creating any Browser or BrowserView instance in your code.
Fixed issues:
Heavyweight WPFBrowserView not shown properly when placed inside an Expander control. Before the fix, the BrowserView appeared to be misplaced after collapsing and restoring the Expander.
Heavyweight WPFBrowserView disposed improperly for the case when the Window.Closing event was canceled for a parent window.
The focus issue when the FireMouseEventsEnabled property was set to true in the heavyweight WPFBrowserView. Now, the drop-downs on the web page are working properly on a mouse click when this option is enabled.
Calculating the bounds in the heavyweight WPFBrowserView for the environments with the non-default DPI settings, causing incorrect positioning of the native window.
DisplayHeaderFooter property for built-in PDF printing being ignored. In the previous implementation, the headers and footers were not printed even if the option was enabled.
Event handlers being specified through the designer. Before the fix, specifying the event handler in the designer led to ignoring the BrowserType and URL properties.
Improper popup sizes provided to the PopupContainer in the environments with the non-default DPI settings.