Explorar el Código

Merge pull request #126 from GaikwadPratik/master

chore(frameview removall): To avoid infitinte loop for removeall
Miguel de Icaza hace 7 años
padre
commit
565447cdfb
Se han modificado 1 ficheros con 10 adiciones y 0 borrados
  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) {