Przeglądaj źródła

Merge pull request #126 from GaikwadPratik/master

chore(frameview removall): To avoid infitinte loop for removeall
Miguel de Icaza 6 lat temu
rodzic
commit
565447cdfb
1 zmienionych plików z 10 dodań i 0 usunięć
  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;
 		}
 
+		/// <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) {