Collection Editor Dialog Box (WPF)

The Collection Editor dialog box in the WPF Designer for Visual Studio is used to add items to and remove items from a collection property in the Properties window. The Collection Editor is available for any property in the Properties windows that has an ellipsis button. For example, when you add items to the RowDefinitions property of a Grid control through the Properties window, you use the Collection Editor. 

WPF Collection Editor dialog box

  • Select item
    Enables you to select the type of item to add to the collection.

  • Add
    Enables you to add a new item to the collection. The new item is added to the bottom of the list and given a default name. You can change the name and other properties in the Properties grid.

  • Up arrow
    Moves the selected item up in the collection.

  • Down arrow
    Moves the selected item down in the collection.

  • Remove
    Removes the selected item from the collection.

  • Properties
    Displays the properties you can edit for the currently selected item. The specific properties you can edit depend on what collection you are editing. The Properties grid works much like the Properties window, but some features (such as Events) are not available.

    In some cases, the properties of the current item contain additional collections. If so, you can open a nested version of the Collection Editor for that collection.

See Also

Tasks

How to: Add Rows and Columns to a Grid

How to: Add Tab Items to a TabControl

Concepts

WPF and Silverlight Designer Overview

Other Resources

WPF Container Controls