Home

Awesome

This project is no longer being maintained!

Similar active projects:

ChromiumGtk

ChromiumGtk is a WebView for GtkSharp using Chromium Embedded Framework (CEF) and CefGlue.

Supported Platforms

Dependencies

Installation

Use nuget to install ChromiumGtk.

dotnet add package Lunixo.ChromiumGtk.Linux64

Usage

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();
}

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

This repository uses code from CefGlue (MIT) and Chromely (MIT)