CodeBrix.Develop.UI 1.0.187.116

There is a newer version of this package available.
See the version list below for details.
dotnet add package CodeBrix.Develop.UI --version 1.0.187.116
                    
NuGet\Install-Package CodeBrix.Develop.UI -Version 1.0.187.116
                    
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="CodeBrix.Develop.UI" Version="1.0.187.116" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CodeBrix.Develop.UI" Version="1.0.187.116" />
                    
Directory.Packages.props
<PackageReference Include="CodeBrix.Develop.UI" />
                    
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 CodeBrix.Develop.UI --version 1.0.187.116
                    
#r "nuget: CodeBrix.Develop.UI, 1.0.187.116"
                    
#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 CodeBrix.Develop.UI@1.0.187.116
                    
#: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=CodeBrix.Develop.UI&version=1.0.187.116
                    
Install as a Cake Addin
#tool nuget:?package=CodeBrix.Develop.UI&version=1.0.187.116
                    
Install as a Cake Tool

CodeBrix.Develop.UI

A fully managed C# binding of the GTK 4 user-interface toolkit, the GtkSourceView source-code editing widget, and the supporting GNOME platform libraries (Gdk, Gsk, Pango, Cairo, HarfBuzz, GdkPixbuf, Graphene, Gio, GObject, and GLib) for .NET, derived from the gir.core project. CodeBrix.Develop.UI has no dependencies other than .NET (plus the native GTK 4 runtime libraries at run time), and is provided as a .NET 10 library and associated CodeBrix.Develop.UI NuGet package.

CodeBrix.Develop.UI supports applications and assemblies that target Microsoft .NET version 10.0 and later. Microsoft .NET version 10.0 is a Long-Term Supported (LTS) version of .NET, and was released on Nov 11, 2025; and will be actively supported by Microsoft until Nov 14, 2028. Please update your C#/.NET code and projects to the latest LTS version of Microsoft .NET.

CodeBrix.Develop.UI supports:

  • Building GTK 4 desktop applications in C# — windows, widgets, layouts, dialogs, signals, and events
  • The GtkSourceView 5 source-code editing widget — syntax highlighting, line numbers, code completion, and style schemes (the CodeBrix.Develop.UI.GtkSource namespace, inside the main assembly)
  • The full GObject type system — subclassing, properties, and signals from managed code
  • The supporting GNOME platform APIs that GTK 4 rests on: Gdk, Gsk, Pango, PangoCairo, Cairo, HarfBuzz, FreeType2, GdkPixbuf, Graphene, Gio, GObject, and GLib — each in its own namespace, all shipped in this one package
  • Compile-time Roslyn source generators for GObject subclassing and GTK composite-template widgets, included in the package as analyzers
  • Linux, Windows, and macOS, with the platform differences resolved by the binding generator

At run time your machine needs the native GTK 4 libraries installed (on Debian-based Linux: sudo apt install libgtk-4-1; they ship with most Linux desktops). Using the GtkSourceView binding additionally requires the native GtkSourceView 5 library (sudo apt install libgtksourceview-5-0).

Sample Code

A minimal GTK 4 application

using CodeBrix.Develop.UI.Gtk;
using GioFlags = CodeBrix.Develop.UI.Gio.ApplicationFlags;

var application = Application.New("com.example.hello", GioFlags.FlagsNone);
application.OnActivate += (sender, args) =>
{
    var window = ApplicationWindow.New((Application) sender);
    window.Title = "Hello from CodeBrix.Develop.UI";
    window.SetDefaultSize(400, 200);

    var button = Button.NewWithLabel("Click me");
    button.OnClicked += (_, _) => window.Close();

    window.SetChild(button);
    window.Present();
};
return application.RunWithSynchronizationContext(null);

License

The project is licensed under the MIT License. see: https://en.wikipedia.org/wiki/MIT_License

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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.
  • net10.0

    • 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
1.0.250.77 96 9/7/2026
1.0.202.186 121 7/21/2026
1.0.187.116 127 7/6/2026