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

New Post: Can't figure out how to use PropertyGrid

$
0
0
Hi,

This attribute doesn't exists.
But when you create your propertyGrid, you can set the properties you want to display. Make sure to set the AutoGenerateProperties to False. This way, one PropertyGrid will show properties A, B an C, while the other propertyGrid can show properties D, E and F.
<xctk:PropertyGrid x:Name="_propertyGrid"
                         SelectedObject="{Binding MyObject}"
                         AutoGenerateProperties="False">
         <xctk:PropertyGrid.PropertyDefinitions>
            <xctk:PropertyDefinition TargetProperties="FavoriteColor" />
            <xctk:PropertyDefinition TargetProperties="PetNames" />
         </xctk:PropertyGrid.PropertyDefinitions>
</xctk:PropertyGrid>

 <xctk:PropertyGrid x:Name="_propertyGrid2"
                          SelectedObject="{Binding MyObject}"
                         AutoGenerateProperties="False">
         <xctk:PropertyGrid.PropertyDefinitions>
            <xctk:PropertyDefinition TargetProperties="FirstName" />
            <xctk:PropertyDefinition TargetProperties="LastName" />
         </xctk:PropertyGrid.PropertyDefinitions>
</xctk: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>