| uid | Terminal.Gui.ViewBase |
|---|---|
| summary | Core view system, base classes, layout primitives, and adornments. |
The ViewBase namespace contains the foundational view architecture for all Terminal.Gui UI elements.
- View - Base class for all UI elements
- Adornment / Margin / Border / Padding - Visual decorations around content
- Pos / Dim - Flexible positioning and sizing system
- ViewArrangement - User interaction flags (Movable, Resizable, Overlapped)
- IValue<T> - Interface for views with strongly-typed values
Views are composed of nested layers:
- Frame - Outer rectangle in SuperView coordinates
- Margin - Transparent spacing outside Border
- Border - Visual frame with title and line style
- Padding - Spacing inside Border
- Viewport - Visible window into content area
- Content Area - Where content is drawn (can be larger than Viewport for scrolling)
View view = new ()
{
X = Pos.Center (),
Y = Pos.Center (),
Width = Dim.Percent (50),
Height = Dim.Auto (),
Title = "My View",
BorderStyle = LineStyle.Rounded,
Arrangement = ViewArrangement.Movable | ViewArrangement.Resizable
};- View Deep Dive
- Layout Deep Dive
- Views Overview
- Arrangement Deep Dive
- Navigation Deep Dive
- Scrolling Deep Dive
- Events Deep Dive - Event handling patterns