Gum.Themes.Editor.MonoGame 2026.5.8.1

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

Gum.Themes.Editor

An editor-focused theme for Gum UI. Provides styled visuals for building tool and editor interfaces with MonoGame and Gum.

Installation

dotnet add package Gum.Themes.Editor

Or via the NuGet Package Manager:

Install-Package Gum.Themes.Editor

Usage

Call EditorTheme.Apply after initializing Gum:

using Gum.Themes.Editor;

protected override void Initialize()
{
    GumService.Default.Initialize(this, DefaultVisualsVersion.Newest);

    EditorTheme.Apply(GraphicsDevice);

    // Now create your UI — all controls will use the editor theme
    var button = new Button();
    button.Text = "Click Me";
}

Included Controls

The theme provides styled visuals for:

  • Button — flat style with outline on hover/press
  • TextBox — dark background with outline states
  • CheckBox — outline on hover/press
  • ComboBox — outline on hover/press
  • ListBox / ListBoxItem — dark background with highlight and selection colors
  • ScrollBar — dark track with styled thumb
  • Slider — narrow thumb with adjusted track
  • Expander — collapsible header/content control with arrow indicator
  • PropertyGridVisual — two-column label/control grid with alternating row backgrounds

PropertyGridVisual

A two-column layout control that displays label/control pairs in rows with alternating background colors — similar to a Unity Inspector or WPF PropertyGrid.

var grid = new PropertyGridVisual();
grid.AddToRoot();
grid.Width = 400;
grid.WidthUnits = DimensionUnitType.Absolute;

grid.AddRow("Name", new TextBox());
grid.AddRow("Visible", new CheckBox());
grid.AddRow("Speed", new Slider());

// Works with any FrameworkElement, including complex controls
var comboBox = new ComboBox();
comboBox.Items.Add("Option A");
comboBox.Items.Add("Option B");
grid.AddRow("Mode", comboBox);

Each row consists of a fixed-width label on the left and the control filling the remaining space on the right. Rows automatically size to fit their content and alternate between two background colors for readability.

Expander

A collapsible header/content control. Clicking the header toggles visibility of the content area. The Expander Forms control lives in Gum.Forms.Controls.

var expander = new Expander();
expander.Header = "Advanced Settings";
expander.AddContent(new CheckBox());
expander.AddContent(new Slider());

Properties

Property Type Description
Header string The text displayed in the header row.
IsExpanded bool Gets or sets whether the content area is visible. Defaults to false.

Events

Event Description
Expanded Raised when IsExpanded changes to true.
Collapsed Raised when IsExpanded changes to false.

Programmatic control

// Start expanded
expander.IsExpanded = true;

// React to expand/collapse
expander.Expanded += (sender, e) => Console.WriteLine("Opened");
expander.Collapsed += (sender, e) => Console.WriteLine("Closed");

Inside a PropertyGridVisual

The Expander works as a row control in a PropertyGridVisual:

var expander = new Expander();
expander.Header = "More Options";
expander.AddContent(new CheckBox());
expander.AddContent(new Slider());
grid.AddRow("Expander", expander);

Requirements

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.

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
2026.5.12.1-preview.1 37 5/12/2026
2026.5.8.1 71 5/8/2026
2026.5.2.1 85 5/2/2026
2026.5.1.1-preview.16 39 5/1/2026
2026.5.1.1-preview.15 46 5/1/2026
2026.5.1.1-preview.14 43 5/1/2026
2026.5.1.1-preview.13 45 5/1/2026
2026.5.1.1-preview.12 45 5/1/2026
2026.4.29.1-preview.11 43 4/29/2026
2026.4.28.1-preview.10 55 4/28/2026
2026.4.28.1-preview.9 63 4/28/2026
2026.4.27.1-preview.8 50 4/28/2026
2026.4.27.1-preview.7 55 4/27/2026
2026.4.23.1-preview.6 55 4/24/2026
2026.4.23.1-preview.5 52 4/24/2026
2026.4.23.1-preview.4 47 4/23/2026
2026.4.23.1-preview.3 68 4/23/2026
2026.4.23.1-preview.1 63 4/23/2026
2026.4.5.1 188 4/6/2026