Getting Started

We’ll begin with a completely uncustomised PropertyGrid control.

To populate the grid, set its SelectedObject property. In this walkthrough, we’ll use the sample Person object from the SampleData project as our SelectedObject, and we’ll assign the SelectedObject property in the page constructor.

Note the default behavior: primitive properties such as strings and integers can be edited in place, “class” properties such as phone numbers are displayed using their ToString() method but can be expanded to edit their properties. We will see how to customize this behaviour later on.

See 01_GettingStarted.xaml in the PropertyGridCustomization project.

Next step: Adding Sorting and Filtering