Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Use the collection editor to set a property

Use the collection editor to set a property

In the Properties panel, you can set properties in many ways. The simplest way is to type a value, select a button, or select a value from a drop-down list. More complex properties use the subproperty and collection editors. You can also use advanced property options to data-bind, template-bind, or apply a resource to a property.

The following procedure shows you how to use a collection editor to add columns to a Grid layout panel.

  1. Select a Grid object on the artboard, such as the LayoutRoot object.

  2. Under Layout in the Properties panel, click Show advanced properties Cc374996.de239c9d-42ce-4f5e-83b9-5f9924c0431f(en-us,Expression.30).png to expand the Layout category.

  3. Next to the ColumnDefinitions property, click Edit items in this collection Cc374996.3f9fe48b-caf8-4989-8a91-017ba1e0cb77(en-us,Expression.30).png.


    The collection editor opens.

  4. To add a column to the collection, click Add another item.

    A ColumnDefinition item is added to the collection.

  5. You can add more columns to the collection, and you can set the properties for each column on the right side of the collection editor, under Properties. For example, you can configure how the column will resize in your running application by setting the Width property.

    For information about the sizing options, see Change the sizing option for a row or column.

  6. When you finish, click OK.

Community Additions

© 2015 Microsoft