NatElkins / Chromely

Build .NET/.NET Core HTML5 desktop apps using cross-platform native GUI API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chromely

Chromely is a .NET/.NET Core HTML5 Chromium desktop framework. It is focused on building apps using embedded Chromium (Cef) without WinForm or WPF. Chromely uses Windows and Linux native GUI API as chromium hosts. It can be extended to use WinForm or WPF. Main form of communication with Chromium rendering process is via Ajax HTTP/XHR requests using custom schemes and domains (Xilium.CefGlue, CefSharp), .NET/Javascript integration (CefSharp), Generic Message Routing (Xilium.CefGlue).

Platforms

Cross-platform - Windows, Linux. Built on CefGlue, CefSharp, NET Standard 2.0, .NET Core 2.0, .NET Framework 4.61 and above.

  • Xilium.CefGlue .NET Standard port is available on Nuget.
  • Chromely.Core beta is available on Nuget.
  • Chromely.CefGlue.Winapi beta is available on Nuget.
  • Chromely.CefSharp.Winapi beta is available on Nuget.

For more info/documentation, please check Chromely wiki.

Creating a Simple App (Using CefGlue with Winapi host)

For more info see - Getting Started

class Program
{
   static int Main(string[] args)
   {
      string startUrl = "www.google.com";

      ChromelyConfiguration config = ChromelyConfiguration
                                    .Create()
                                    .WithCefAppArgs(args)
                                    .WithCefHostSize(1000, 600)
                                    .WithCefStartUrl(startUrl);

     var factory = WinapiHostFactory.Init();
     using (var window = factory.CreateWindow(() => new CefGlueBrowserHost(config),
           "chromely", constructionParams: new FrameWindowConstructionParams()))
      {
         window.SetSize(config.CefHostWidth, config.CefHostHeight);
         window.CenterToScreen();
         window.Show();
         return new EventLoop().Run(window);
     }
  }
}

Chromely Demos

For more info on demos - Demos

References

About

Build .NET/.NET Core HTML5 desktop apps using cross-platform native GUI API

License:MIT License


Languages

Language:C# 97.2%Language:HTML 2.8%