Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

New Post: PropertyGrid Categorization with Access Modifiers

$
0
0
Hi,

From a small sample project where the PropertyGrid.SelectedObject = MyClass, I can see that only the public properties are displayed in the propertyGrid. Here's the reason : in "ObjectContainerHelperBase.GetPropertyDescriptors" method, this line is used :
descriptors = TypeDescriptor.GetProperties( instance.GetType() );
The instance type is the MyClass type and this system method returns only the public properties into the descriptors.

Viewing all articles
Browse latest Browse all 4964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>