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

New Post: Dynamic PropertyGrid

$
0
0
Do you need the plus edition? I think you can achieve this in the community edition by creating a "Xceed.Wpf.Toolkit.PropertyGrid.PropertyDefinitionCollection", adding each property you want displayed to the list by populating a "Xceed.Wpf.Toolkit.PropertyGrid.PropertyDefinition" and adding it to the list, and then assigning this to the "PropertyDefinitions" property of the property grid. e.g.
        var propertyDefinitions = new Xceed.Wpf.Toolkit.PropertyGrid.PropertyDefinitionCollection ();

        foreach (DataField fld in fieldList)
        {
            var propDef = new Xceed.Wpf.Toolkit.PropertyGrid.PropertyDefinition();
            /* Populate the propDef object as required */
            propertyDefinitions.Add(propDef);

        }
        ThePropertyGrid.PropertyDefinitions = propertyDefinitions;

Viewing all articles
Browse latest Browse all 4964

Trending Articles