Containers that have a contentView where they host their children must override RemoveAll

This commit is contained in:
miguel
2018-09-28 22:45:06 -04:00
parent 00c11ad70b
commit d8b4fd425c
2 changed files with 19 additions and 0 deletions

View File

@@ -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) {

View File

@@ -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.