Awesome
WebUI4CSharp
WebUI4CSharp is a WebUI wrapper, which allows you to use any web browser as a GUI, with C# in the backend and HTML5 in the frontend.
WebUI allows you to link your console, WinForms or WPF application with a web app that runs in a web browser installed in the operating system. Originally WebUI was created to have all the UI code in the web browser and the rest of the code in your hidden C# application. However, you can also decide to have a visible C# application communicating with a HTML5 app. You can get web browser events in your desktop application, call C# functions from JS, call JS functions from C# code, execute JavaScript, etc.
WebUI4CSharp can be used console, WinForms or WPF applications for Windows.
WebUI doesn't embed a web browser in your application. It's used as a bridge between a desktop application and the web browser running an HTML5 app.
Features
- Fully Independent (No need for any third-party runtimes)
- Lightweight & Small memory footprint
- Fast binary communication protocol between WebUI and the browser (Instead of JSON)
- Multi-platform & Multi-Browser
- Using private profile for safety
- Original library written in Pure C
- XML documentation.
- Help file.
Minimal Example
using WebUI4CSharp;
WebUIWindow window = new WebUIWindow();
window.Show("<html><head><script src=\"webui.js\"></script></head> Hello World ! </html>");
WebUI.Wait();
Text editor
This text_editor is a lightweight and portable example written in C# and JavaScript using WebUI as the GUI.
Installation
Use the Nuget Package Manager to install the WebUI4CSharp and WebUI4CSharp.Natives packages or use the following commands :
dotnet add package WebUI4CSharp
dotnet add package WebUI4CSharp.Natives
Building the demos
- Open the file WebUI4CSharp.Samples\WebUI4CSharp.Samples.sln.
- Press Control+Shift+B to build the demos
Links
Support
If you find this project useful, please consider making a donation.
You can also support this project with Patreon.
<a href="https://patreon.com/salvadordf"><img src="https://c5.patreon.com/external/logo/become_a_patron_button.png" alt="Patreon donate button" /></a>
You can also support this project with Liberapay.
<a href="https://liberapay.com/salvadordf/donate"><img alt="Donate using Liberapay" src="https://liberapay.com/assets/widgets/donate.svg"></a>