فهرست منبع

Set the parent and driver on SetSource

Paul Sanford 7 سال پیش
والد
کامیت
7254bbe7ce
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  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;