From 3e58f8adbf5ed9838ca1ee5dfc3a0ebd10512bd9 Mon Sep 17 00:00:00 2001 From: NaBian <836904362@qq.com> Date: Sat, 20 Aug 2022 17:32:21 +0800 Subject: [PATCH] fix: property grid can not show whole content issue. --- .../Controls/PropertyGrid/PropertyItemsControl.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Shared/HandyControl_Shared/Controls/PropertyGrid/PropertyItemsControl.cs b/src/Shared/HandyControl_Shared/Controls/PropertyGrid/PropertyItemsControl.cs index b1501dee..17a726ac 100644 --- a/src/Shared/HandyControl_Shared/Controls/PropertyGrid/PropertyItemsControl.cs +++ b/src/Shared/HandyControl_Shared/Controls/PropertyGrid/PropertyItemsControl.cs @@ -11,6 +11,8 @@ public class PropertyItemsControl : ListBox #if !NET40 VirtualizingPanel.SetIsVirtualizingWhenGrouping(this, true); VirtualizingPanel.SetScrollUnit(this, ScrollUnit.Pixel); +#else + System.Windows.Controls.ScrollViewer.SetCanContentScroll(this, false); #endif } }