Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/salvadordf/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.
https://github.com/salvadordf/webui4csharp

browser c-sharp console gui javascript typescript web webapp webui windows winforms wpf

Last synced: 4 days ago
JSON representation

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.

Awesome Lists containing this project

README

        

# WebUI4CSharp [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Add%20WebUI4CSharp%20to%20your%20applications%20to%20use%20any%20web%20browser%20as%20a%20GUI%20in%20your%20application&url=https://github.com/salvadordf/WebUI4CSharp&via=briskbard&hashtags=WebUI4CSharp,csharp,webui)
WebUI4CSharp is a [WebUI](https://github.com/webui-dev/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

```cs
using WebUI4CSharp;

WebUIWindow window = new WebUIWindow();
window.Show(" Hello World ! ");
WebUI.Wait();
```

[More examples](https://github.com/salvadordf/WebUI4CSharp/tree/main/demos)

## Text editor

This [text_editor](https://github.com/salvadordf/WebUI4CSharp/tree/main/demos/console_text_editor) is a lightweight and portable example written in C# and JavaScript using WebUI as the GUI.

![text_editor](https://github.com/salvadordf/WebUI4CSharp/assets/17946341/caf363cf-a226-4635-9e1b-8d93f73e3a1e)

## Building

* Open the file WebUI4CSharp\WebUI4CSharp.sln.
* Press Control+Shift+B to build the solution

## Links
* [Developer Forums](https://www.briskbard.com/forum)
* [WebUI project](https://github.com/webui-dev/webui)
* [C API documentation](https://webui.me/docs/#/c_api)

## Support
If you find this project useful, please consider making a donation.

[![paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FTSD2CCGXTD86)

You can also support this project with Patreon.

Patreon donate button

You can also support this project with Liberapay.

Donate using Liberapay

## Related projects
* [CEF4Delphi](https://github.com/salvadordf/CEF4Delphi)
* [WebView4Delphi](https://github.com/salvadordf/WebView4Delphi)
* [WebUI4Delphi](https://github.com/salvadordf/WebUI4Delphi)
* [Doxygen](https://github.com/doxygen/doxygen)
* [WebUI.NET](https://github.com/Juff-Ma/WebUI.NET)