ArgonUI 0.1.2-pre

This is a prerelease version of ArgonUI.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package ArgonUI --version 0.1.2-pre
                    
NuGet\Install-Package ArgonUI -Version 0.1.2-pre
                    
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="ArgonUI" Version="0.1.2-pre" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ArgonUI" Version="0.1.2-pre" />
                    
Directory.Packages.props
<PackageReference Include="ArgonUI" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ArgonUI --version 0.1.2-pre
                    
#r "nuget: ArgonUI, 0.1.2-pre"
                    
#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.
#:package ArgonUI@0.1.2-pre
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ArgonUI&version=0.1.2-pre&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=ArgonUI&version=0.1.2-pre&prerelease
                    
Install as a Cake Tool

ArgonUI

<p align="center"> <img src="https://github.com/space928/ArgonUI/blob/main/QPlayer/Resources/IconM.png?raw=true" alt="ArgonUI Logo" width="128" height="128"> </p>

Build Status Build Status GitHub License GitHub Downloads (all assets, all releases) Nuget

ArgonUI is a fast cross-platform UI framework for .NET. It aims to aims to provide a fast and flexible UI framework, without all of the boilerplate.

Features:

  • A collection of common UI controls built in
  • Windows/Linux/Mac support
  • Support for multiple rendering backends
    • Efficient OpenGL based rendering backend
  • Event driven rendering, means elements or only rendered when they change
  • Flexbile control styling system
  • Data binding

Usage

For most users, it's easiest to simply intall the NuGet package:
Nuget

dotnet add package ArgonUI

Install a suitable rendering backend as well:
Nuget

dotnet add package ArgonUI.Backends.OpenGL

Using ArgonUI is as simple as creating an ArgonManager and a UIWindow:

using ArgonUI;
using ArgonUI.UIElements;
using ArgonUI.Backends.OpenGL;

namespace ArgonUI.Examples.DemoApp;

public class Program
{
    public static void Main(string[] args)
    {
        ArgonManager argon = new();
        var wnd = argon.CreateOpenGLWindow();

        // Wait for the window to exit before returning
        wnd.Wait();
    }
}

Adding UI elements and subscribing to events is equally simple:

ArgonManager argon = new();
var wnd = argon.CreateOpenGLWindow();
var rect = new Rectangle();
var label = new Label();
wnd.RootElement.AddChild(rect);

int counter = 0;

wnd.RootElement.BGColour = new(0, 0.5f, 1, 1);
rect.Width = 100;
rect.Height = 100;
rect.Rounding = 5;
rect.Colour = new(0, .8f, .25f, 1);
rect.OnMouseDown += () =>
{
    label.Text = $"Hello World! {counter++}";
};
rect.OnMouseEnter += () =>
{
    rect.Colour = new(1f, .5f, .1f, 1);
    rect.Rounding = 20;
};
rect.OnMouseLeave += () =>
{
    rect.Colour = new(0, .8f, .25f, 1);
    rect.Rounding = 5;
};

wnd.RootElement.AddChild(label);
label.Text = "Hello World!";

wnd.Wait();

For more details see the Documentation.

Building

ArgonUI can be built with Visual Studio 2022 using the .NET SDK 8.

See the design_notes.md document for more details on the internal design of ArgonUI. (Note that this is a working document, and may not reflect the latest changes)

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on ArgonUI:

Package Downloads
ArgonUI.Backends.OpenGL

Package Description

ArgonUI.Backends.Headless

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.4.1-pre 126 6/30/2025
0.3.1-pre 83 6/22/2025
0.2.1-pre 76 3/22/2025
0.1.2-pre 75 2/25/2025