mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Containers that have a contentView where they host their children must override RemoveAll
This commit is contained in:
@@ -1417,6 +1417,16 @@ namespace Terminal.Gui {
|
||||
this.CanFocus = false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Removes all widgets from this container.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// </remarks>
|
||||
public override void RemoveAll ()
|
||||
{
|
||||
contentView.RemoveAll ();
|
||||
}
|
||||
|
||||
public override void Redraw (Rect bounds)
|
||||
{
|
||||
if (!NeedDisplay.IsEmpty) {
|
||||
|
||||
@@ -319,6 +319,15 @@ namespace Terminal.Gui {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Removes all widgets from this container.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// </remarks>
|
||||
public override void RemoveAll()
|
||||
{
|
||||
contentView.RemoveAll();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// /// Gets or sets the visibility for the vertical scroll indicator.
|
||||
|
||||
Reference in New Issue
Block a user