The PropertyGridControl is the control designed to edit object properties. It can be bound to a specific object as well as a collection of objects.
To browse and manage properties of a specific object, set the PropertyGridControl.SelectedObject property to this object.
[C#]publicpartialclassMainWindow{publicMainWindow(){DataContext=newContact("Carolyn","Baker");InitializeComponent();}}publicclassContact{publicstringFirstName{get;set;}publicstringLastName{get;set;}publicContact(stringfirstName,stringlastName){FirstName=firstName;LastName=lastName;}}
[XAML]<dxprg:PropertyGridControlSelectedObject="{Binding Path=.}"/>
To edit properties of multiple objects simultaneously, use PropertyGridControl.SelectedObjects.
[C#]publicpartialclassMainWindow{publicMainWindow(){DataContext=newList<Contact>{newContact("Carolyn","Baker"),newContact("Amber","Seaman")};InitializeComponent();}}
[XAML]<dxprg:PropertyGridControlSelectedObjects="{Binding Path=.}"ExpandCategoriesWhenSelectedObjectChanged="True"/>