From bf4fa5ccc26dc2b7079794675273d234ae6be6a0 Mon Sep 17 00:00:00 2001 From: "donglin.shi" Date: Thu, 21 Sep 2023 15:51:51 +0800 Subject: [PATCH] =?UTF-8?q?PropertiGrid=20=E6=8E=A7=E4=BB=B6=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E4=BD=BF=E7=94=A8=20ICustomTypeDescriptor=20=E8=87=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=E6=98=BE=E7=A4=BA=E7=9A=84=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../HandyControl_Shared/Controls/PropertyGrid/PropertyGrid.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Shared/HandyControl_Shared/Controls/PropertyGrid/PropertyGrid.cs b/src/Shared/HandyControl_Shared/Controls/PropertyGrid/PropertyGrid.cs index 1f6365ce2..b5b20fcb5 100644 --- a/src/Shared/HandyControl_Shared/Controls/PropertyGrid/PropertyGrid.cs +++ b/src/Shared/HandyControl_Shared/Controls/PropertyGrid/PropertyGrid.cs @@ -126,7 +126,7 @@ private void UpdateItems(object obj) { if (obj == null || _itemsControl == null) return; - _dataView = CollectionViewSource.GetDefaultView(TypeDescriptor.GetProperties(obj.GetType()).OfType() + _dataView = CollectionViewSource.GetDefaultView(TypeDescriptor.GetProperties(obj).OfType() .Where(item => PropertyResolver.ResolveIsBrowsable(item)).Select(CreatePropertyItem) .Do(item => item.InitElement()));