This example demonstrates how to use the PropertyGridEditor
attribute. This attribute allows you to apply a property definition or property editor template at the data model level.
In this example, Employee objects contain an edit button in their editors. This button opens the dialog that allows you to edit object properties.
Templates with the PropertyDefinition and CollectionDefinition are applied to the Location and Employees properties, respectively.
- Data.cs (VB: Data.vb)
- ViewModel.cs (VB: ViewModel.vb)
- MainWindow.xaml (VB: MainWindow.xaml)
- Property Attributes
- Customize Properties
- Expandability Customization
- Bind to Property Grid and its Elements
(you will be redirected to DevExpress.com to submit your response)