ArgonUI 0.1.2-pre

This is a prerelease version of ArgonUI.
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.
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.
// Install ArgonUI as a Cake Addin
#addin nuget:?package=ArgonUI&version=0.1.2-pre&prerelease

// Install ArgonUI as a Cake Tool
#tool nuget:?package=ArgonUI&version=0.1.2-pre&prerelease                

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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on ArgonUI:

Package Downloads
ArgonUI.Backends.OpenGL

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.1.2-pre 47 2/25/2025