Browse Source

Set the parent and driver on SetSource

Paul Sanford 7 years ago
parent
commit
7254bbe7ce
1 changed files with 2 additions and 0 deletions
  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)
 			if (source == null)
 				throw new ArgumentNullException (nameof (source));
 				throw new ArgumentNullException (nameof (source));
 			Source = MakeWrapper (source);
 			Source = MakeWrapper (source);
+			((ListWrapper) Source).Container = this;
+			((ListWrapper) Source).Driver = Driver;
 		}
 		}
 
 
 		bool allowsMarking;
 		bool allowsMarking;