namespace Terminal.Gui.Views;
// TODO: FrameView is mis-named, really. It's far more about it being a TabGroup than a frame.
///
/// A non-overlapped container for other views with a border and optional title.
///
///
///
/// FrameView has set to and
/// inherits it's scheme from the .
///
///
///
///
///
///
public class FrameView : View
{
private static LineStyle _defaultBorderStyle = LineStyle.Rounded; // Resources/config.json overrides
///
/// Initializes a new instance of the class.
/// layout.
///
public FrameView ()
{
CanFocus = true;
TabStop = TabBehavior.TabGroup;
BorderStyle = DefaultBorderStyle;
}
///
/// Defines the default border styling for . Can be configured via
/// .
///
///
/// This property can be set in a Theme to change the default for all
/// s.
///
[ConfigurationProperty (Scope = typeof (ThemeScope))]
public static LineStyle DefaultBorderStyle
{
get => _defaultBorderStyle;
set => _defaultBorderStyle = value;
}
}