Using Xceed PropertyGrid
Asked Answered
I

1

9

I am a beginner at C#/WPF and am trying to use the Xceed PropertyGrid. On their site they show an example:

 <xctk:PropertyGrid x:Name="_propertyGrid" Width="450" Margin="10"
                                 AutoGenerateProperties="False">
            <!-- Only the following properties will be displayed in the PropertyGrid -->
            <xctk:PropertyGrid.PropertyDefinitions>
                <xctk:PropertyDefinition Name="FirstName" />
                <xctk:PropertyDefinition Name="FavoriteColor" />
                <xctk:PropertyDefinition Name="PetNames" />
            </xctk:PropertyGrid.PropertyDefinitions>
        </xctk:PropertyGrid>

Which I have plugged in to my xaml. I see the PropertyGrid View however I do not see any of the property definitions. I feel like I must be missing something basic? Am I supposed to add anything to the code-behind?

Inseminate answered 20/4, 2012 at 18:51 Comment(2)
Maybe remove this line AutoGenerateProperties="False"?Palila
i've tried this already, no luck unfortunatelyInseminate
I
12

I found the solution here: http://wpftoolkit.codeplex.com/discussions/353017

Also, you can download the source on the Xceed website. This comes up with samples using propertygrid which helped me as well. The trick is assigning PropertyGrid's 'SelectedObject'.

Inseminate answered 22/4, 2012 at 18:20 Comment(3)
Yes I downloaded the source but I don't see any samples?Seine
the link is brokenGranulite
Samples can be found on github: github.com/xceedsoftware/wpftoolkit/tree/master/…Wizardly

© 2022 - 2024 — McMap. All rights reserved.