瀏覽代碼

Merge pull request #126 from GaikwadPratik/master

chore(frameview removall): To avoid infitinte loop for removeall
Miguel de Icaza 6 年之前
父節點
當前提交
565447cdfb
共有 1 個文件被更改,包括 10 次插入0 次删除
  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) {