DotNetBrowser
DotNetBrowser is a proprietary.NET library that provides a Chromium-based engine which can be used to load and display web pages.
It is developed and supported by TeamDev since 2015.
Features
Some main features are as follows:- Load and display the web page.
- Embed a Chromium-based browser in a.NET desktop application as an Avalonia UI, WPF or Windows Forms control.
- Handle navigation and network events.
- Access Document Object Model of the loaded web page.
- Execute JavaScript on the loaded web page, inject.NET objects and call them from JavaScript
Usage
Another known use-cases are creating web-based kiosk applications and VSTO add-ins for Microsoft Office.
More examples and use-cases are available in the repository.
Example
WPF
XAML markupxmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:wpf="clr-namespace:DotNetBrowser.Wpf;assembly=DotNetBrowser.Wpf"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800" Closed="MainWindow_OnClosed">
C#
using System;
using System.Windows
using DotNetBrowser.Browser;
using DotNetBrowser.Engine;
namespace Sample.Wpf;
public partial class MainWindow : Window
Windows Forms
C#using System;
using System.Windows.Forms;
using DotNetBrowser.Browser;
using DotNetBrowser.Engine;
using DotNetBrowser.WinForms;
namespace Sample.WinForms;
public partial class Form1 : Form