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

New Post: Property Grid override/ignore Browsable attribute?

$
0
0
Hi,

if you want to see a property in the PropertyGrid, you need to have the BrowsableAttribute set to True (default is True).
If you want to only show some properties, you could :
a) modify BrowsableAttribute of the non-visible properties to be False
b) use the AutoGenerateProperties = false and use the PropertyDefinitions to set the properties you want to see. You can set this in Code-behind if its simpler for you.
c) You can modify the method ObjectContainerHelper.GenerateSubPropertiesCore(). this is where the properties are added to the PropertyGrid.

Viewing all articles
Browse latest Browse all 4964

Trending Articles



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