Sfoglia il codice sorgente

Set the parent and driver on SetSource

Paul Sanford 7 anni fa
parent
commit
7254bbe7ce
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      Terminal.Gui/Views/ListView.cs

+ 2 - 0
Terminal.Gui/Views/ListView.cs

@@ -180,6 +180,8 @@ namespace Terminal.Gui {
 			if (source == null)
 				throw new ArgumentNullException (nameof (source));
 			Source = MakeWrapper (source);
+			((ListWrapper) Source).Container = this;
+			((ListWrapper) Source).Driver = Driver;
 		}
 
 		bool allowsMarking;