Grid.ColumnDefinitions property

This topic has not yet been rated - Rate this topic

Gets a list of ColumnDefinition objects defined on this instance of Grid.

Syntax

Public ReadOnly Property ColumnDefinitions As ColumnDefinitionCollection
   Get

<Grid>
  <Grid.ColumnDefinitions>
    oneOrMoreColumnDefinitions
  </Grid.ColumnDefinitions>
</Grid>

XAML Values

oneOrMoreColumnDefinitions

One or more ColumnDefinition elements. Each such ColumnDefinition becomes a placeholder representing a column in the final grid layout.

Property value

Type: ColumnDefinitionCollection

A list of ColumnDefinition objects defined on this instance of Grid.

Examples

The following example creates a Grid with two columns by using ColumnDefinitions.


<Grid.ColumnDefinitions>
    <ColumnDefinition Width="250" />
    <ColumnDefinition Width="150" />
</Grid.ColumnDefinitions>


Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Namespace

Windows.UI.Xaml.Controls
Windows::UI::Xaml::Controls [C++]

Metadata

Windows.winmd

See also

Grid

 

 

Build date: 3/12/2013

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.