Browse Source

Merge pull request #126 from GaikwadPratik/master

chore(frameview removall): To avoid infitinte loop for removeall
Miguel de Icaza 6 years ago
parent
commit
565447cdfb
1 changed files with 10 additions and 0 deletions
  1. 10 0
      Terminal.Gui/Views/FrameView.cs

+ 10 - 0
Terminal.Gui/Views/FrameView.cs

@@ -101,6 +101,16 @@ namespace Terminal.Gui {
 				this.CanFocus = false;
 				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)
 		public override void Redraw (Rect bounds)
 		{
 		{
 			if (!NeedDisplay.IsEmpty) {
 			if (!NeedDisplay.IsEmpty) {