diff --git a/Terminal.Gui/Core/View.cs b/Terminal.Gui/Core/View.cs index 36ce60d5e..8034047af 100644 --- a/Terminal.Gui/Core/View.cs +++ b/Terminal.Gui/Core/View.cs @@ -1514,7 +1514,7 @@ namespace Terminal.Gui { Driver.SetAttribute (HasFocus ? ColorScheme.Focus : ColorScheme.Normal); } - if (Border != null) { + if (!IgnoreBorderPropertyOnRedraw && Border != null) { Border.DrawContent (this); } else if (ustring.IsNullOrEmpty (TextFormatter.Text) && (GetType ().IsNestedPublic) && !IsOverridden (this, "Redraw") && @@ -2663,6 +2663,15 @@ namespace Terminal.Gui { } } + /// + /// Get or sets whether the view will use (if is set) to draw + /// a border. If (the default), + /// will call + /// to draw the view's border. If no border is drawn (and the view is expected to draw the border + /// itself). + /// + public virtual bool IgnoreBorderPropertyOnRedraw { get; set; } = false; + /// /// Pretty prints the View ///