Similar active projects:
ChromiumGtk is a WebView for GtkSharp using Chromium Embedded Framework (CEF) and CefGlue.
- .NET Core 3.1 on Ubuntu 20.04 (AMD64)
Use nuget to install ChromiumGtk.
dotnet add package Lunixo.ChromiumGtk.Linux64
static void Main()
{
var runtime = new Runtime();
runtime.Initialize();
Gtk.Application.Init();
using var window = new Gtk.Window("ChromiumGTK Demo")
{
WidthRequest = 1200,
HeightRequest = 800
};
window.Destroyed += (sender, args) => runtime.QuitMessageLoop();
InteropLinux.SetDefaultWindowVisual(window.Handle);
using var webView = new WebView();
webView.LoadUrl("https://dotnet.microsoft.com/");
window.Add(webView);
window.ShowAll();
runtime.RunMessageLoop();
runtime.Shutdown();
}
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
This repository uses code from CefGlue (MIT) and Chromely (MIT)