Partager via


Populate the List with Data (Compact 7)

3/12/2014

After you create the Windows Embedded Silverlight Tools subproject that uses your Expression Blend project as its foundation, you can add C++ code to the subproject files. This code populates the UI with data from a data source collection. The list in your application displays the items from your data source collection in a list. Your application can populate each list-box item with a data source object from the collection.

When the user selects an item in the list, you can also populate data-bound elements with data-source properties of the object that is bound to the item. For example, when a user selects an item in an employee list, the employee data application can populate TextBlock data-bound elements with the FirstName and DOH data-source property values for the selected item.

To populate a list with data, you must create a data class and a data source collection, and then establish a data connection between the data source collection and the list.

In This Section

See Also

Concepts

Populate a Silverlight for Windows Embedded UI with Collections of Data