Terminal.Gui.Reflect
2.0.1
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Terminal.Gui.Reflect --version 2.0.1
NuGet\Install-Package Terminal.Gui.Reflect -Version 2.0.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="Terminal.Gui.Reflect" Version="2.0.1" />
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.1" />
<PackageReference Include="Terminal.Gui.Reflect" />
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.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Terminal.Gui.Reflect, 2.0.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 Terminal.Gui.Reflect@2.0.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=Terminal.Gui.Reflect&version=2.0.1
#tool nuget:?package=Terminal.Gui.Reflect&version=2.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 | Versions 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
- Terminal.Gui (>= 2.0.0)
- Terminal.Gui.Reflect.Abstractions (>= 2.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.