Como: preencher coleções usando o Editor de Coleção
Some Windows Presentation Foundation (WPF) controls, such as ListBox and ComboBox, are designed to contain collections of objects. While these objects can be added manually in code or in the XAML editor, a faster way to populate collections is by using the Collection Editor. The Collection Editor allows you to quickly populate collections and edit the properties of the items in a collection.
To populate a collection with the Collection Editor
In the WPF Designer, select the control that contains the collection that you want to populate.
In the Properties window, locate the Items property and click the ellipsis button in the Items property value cell.
The Collection Editor opens.
In the Collection Editor, select the type of the item that you want to add to the collection from the drop-down box and click Add. A new item of the selected type is added to the collection.
When finished, click OK.
To edit items in a collection with the Collection Editor
In the WPF Designer, select the control that contains the collection that you want to edit.
In the Properties window, locate the Items property and click the ellipsis button in the Items property value cell.
The Collection Editor opens.
Select the item you want to edit from the list on the left-hand side of the Collection Editor.
In the Properties grid on the right-hand side of the Collection Editor, edit the properties for the selected item.
When finished, click OK.