Version

Binding xamDataPresenter to Data

Data binding plays a pivotal role in every data presentation control, including xamDataPresenter™, xamDataGrid™, xamDataCarousel™, and xamDataCards™. The xamDataCards control can only display flat data while the other controls can display hierarchical data in addition to flat data.

By default, when you data bind any of the controls mentioned above, they create a FieldLayout for each unique Type of object in your data source. Each publically exposed property by your data item will have a corresponding Field in the FieldLayout. If a publically exposed property returns an object that implements the IEnumerable interface and the control supports hierarchical data, it will display an expansion indicator so that your end user can drill down into the hierarchy.

Requirements for Data Binding

Just like any data bound control in Microsoft® Windows® Presentation Foundation, there are some requirements you must meet in order to bind your data to the data presentation controls.