#nullable enable
namespace Terminal.Gui;
/// A single tab in a .
public class Tab : View
{
private string? _displayText;
/// Creates a new unnamed tab with no controls inside.
public Tab ()
{
BorderStyle = LineStyle.Rounded;
CanFocus = true;
TabStop = TabBehavior.NoStop;
}
/// The text to display in a .
///
public string DisplayText
{
get => _displayText ?? "Unnamed";
set
{
_displayText = value;
SetNeedsDraw ();
}
}
/// The control to display when the tab is selected.
///
public View? View { get; set; }
}