Build Cross Platform HTML Desktop Apps on .NET using native GUI, HTML5, JavaScript, CSS, Owin, AspNetCore (MVC, RazorPages, Blazor)
- Upgrade to v5.1 - https://github.com/chromelyapps/Chromely/issues/225.
- Fixes for Fullscreen/Kiosk modes - https://github.com/chromelyapps/Chromely/commit/b383c3f6e165895f8a216e50ba551a6e26c0a65a
- Adding a configurable option - UseOnlyCefMessageLoop - https://github.com/chromelyapps/Chromely/commit/df44870ad1928fb95badae7b8c4be7c65f4d5b92
Last release before v5.1.
Chromely has been migrated to .NET Core 3 and now natively supports Windows, Linux and MacOS.
Please see our new and improved Wiki for additional information about Chromely.
All projects are now .NET Standard 2.0
This guide provides an introduction to Chromely 5 and a set of guidelines to migrate from v4.x to v5.x.
Please see our new and improved Wiki and Demo Projects for additional information on how to create a new project.
Chromely v4 (before)
class Program
{
static int Main(string[] args)
{
var startUrl = "https://google.com";
var config = ChromelyConfiguration
.Create()
.WithHostMode(WindowState.Normal, true)
.WithHostTitle("chromely")
.WithHostIconFile("chromely.ico")
.WitAppArgs(args)
.WithHostSize(1000, 600)
.WithStartUrl(startUrl);
using (var window = ChromelyWindow.Create(config))
{
return window.Run(args);
}
}
}
Chromely v5 (now)
class Program
{
static int Main(string[] args)
{
AppBuilder
.Create()
.UseApp<DemoChromelyApp>()
.Build()
.Run(args);
}
}
By default Chromely comes with its own default configuration. There are a few ways how you can configure Chromely. The example below overwrites the Default Configuration, this is the easiest way to configure Chromely.
Please see the wiki article about Configuration for other solutions on how to configure Chromely.
using Chromely.Core;
using Chromely.Core.Configuration;
namespace My_Chromely_App
{
class Program
{
static void Main(string[] args)
{
// create a configuration with OS-specific defaults
var config = DefaultConfiguration.CreateForRuntimePlatform();
// your configuration
config.StartUrl = "https://chromely.net/";
config.WindowOptions.Title = "My Awesome Chromely App!";
//..
// application builder
AppBuilder
.Create()
.UseApp<DemoChromelyApp>()
.UseConfiguration<IChromelyConfiguration>(config)
.Build()
.Run(args);
}
}
}
As you can see from the example above, some settings have been regrouped. This makes it easier to find specific settings. E.g. WindowsSettings or CefDownloadOptions.
Improved and optimized using ReSharper.