Browse Source

Set the parent and driver on SetSource

Paul Sanford 7 năm trước cách đây
mục cha
commit
7254bbe7ce
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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;