Terminal.Gui.Reflect 2.0.4

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

Terminal.Gui.Reflect

This project adds additional views for Terminal.Gui v2 applications. Per project name, the focus is on using reflection to auto-generate the view as well as automatic two-way binding support.

Acknowledgements

Authors

Features

  • PropertyGrid
    • A view that auto generates categories and properties
    • Each field supports validation
  • UniformGrid
    • A view similar to WPF's UniformGrid
  • InfoLabel
    • A label that shows a tooltip when hovered

Usage/Examples

PropertyGrid Example:

// using Terminal.Gui v2
var model = new BasicViewModel();
var settings = new PropertyGridSettings()
{
    ShowBorder = false
};
var propertyGrid = new PropertyGrid(model, settings);
propertyGrid.Width  = Dim.Fill();
propertyGrid.Height = Dim.Fill();
Add(propertyGrid); // add the PropertyGrid to our View

UniformGrid Example

var uniformGrid = new UniformGrid(-1, 1); // vertical stacking control

uniformGrid = new UniformGrid(1, -1); // horizontal stacking control

uniformGrid = new UniformGrid(-1, 3); // N rows and up to 3 columns

Add(uniformGrid);

uniformGrid.Add(new Label { Text = "Test" });
uniformGrid.Add(new Label { Text = "Test2" });
uniformGrid.Add(new Label { Text = "Test3" });

InfoLabel Example

var infoLabel = new InfoLabel("Some helpful information.");

var label = new Label { Text = "Concise Label: ", X = 0, Y = 0, Width = Dim.Auto(DimAutoStyle.Text), Height = 1 }

infoLabel.X = Pos.Right(label) + 3;
infoLabel.Y = label.Y;

Add(label, infoLabel);
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.

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.0.6 98 3/12/2026
2.0.5 120 3/12/2026
2.0.4 118 3/12/2026
2.0.2 115 3/12/2026
2.0.1 117 3/12/2026
2.0.0 122 3/11/2026
1.0.3 50 3/10/2026
1.0.2 111 3/10/2026
1.0.1 111 3/10/2026