namespace Terminal.Gui;
///
/// A single tab in a
///
public class Tab {
private string text;
///
/// The text to display in a
///
///
public string Text { get => text ?? "Unamed"; set => text = value; }
///
/// The control to display when the tab is selected
///
///
public View View { get; set; }
///
/// Creates a new unamed tab with no controls inside
///
public Tab ()
{
}
///
/// Creates a new tab with the given text hosting a view
///
///
///
public Tab (string text, View view)
{
this.Text = text;
this.View = view;
}
}