namespace Terminal.Gui; // TODO: FrameView is mis-named, really. It's far more about it being a TabGroup than a frame. /// /// The FrameView is a container View with a border around it. /// public class FrameView : View { /// /// Initializes a new instance of the class. /// layout. /// public FrameView () { CanFocus = true; TabStop = TabBehavior.TabGroup; Border.Thickness = new Thickness (1); Border.LineStyle = DefaultBorderStyle; //Border.ColorScheme = ColorScheme; Border.Data = "Border"; MouseClick += FrameView_MouseClick; } private void FrameView_MouseClick (object sender, MouseEventArgs e) { // base sets focus on HotKey e.Handled = InvokeCommand (Command.HotKey, ctx: new (Command.HotKey, key: null, data: this)) == true; } /// /// The default for 's border. The default is /// . /// /// /// This property can be set in a Theme to change the default for all /// s. /// [SerializableConfigurationProperty (Scope = typeof (ThemeScope))] public static LineStyle DefaultBorderStyle { get; set; } = LineStyle.Single; }