WebUI4CSharp 2.5.0-beta.2

This is a prerelease version of WebUI4CSharp.
dotnet add package WebUI4CSharp --version 2.5.0-beta.2                
NuGet\Install-Package WebUI4CSharp -Version 2.5.0-beta.2                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="WebUI4CSharp" Version="2.5.0-beta.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add WebUI4CSharp --version 2.5.0-beta.2                
#r "nuget: WebUI4CSharp, 2.5.0-beta.2"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install WebUI4CSharp as a Cake Addin
#addin nuget:?package=WebUI4CSharp&version=2.5.0-beta.2&prerelease

// Install WebUI4CSharp as a Cake Tool
#tool nuget:?package=WebUI4CSharp&version=2.5.0-beta.2&prerelease                

WebUI4CSharp Tweet

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

More examples

Text editor

This text_editor is a lightweight and portable example written in C# and JavaScript using WebUI as the GUI.

text_editor

Building

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

Support

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

paypal

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>

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.1

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.5.0-beta.2 39 11/6/2024

Initial Nuget release