AutoGrid Panel

AutoGrid complements the Grid panel by adding the following features:
  • Auto indexing of children (based on the AutoIndexingGrid in the WPF SDK).
  • Support for Vertical and Horizontal orientation of automatic indexing.
  • Support for spanning.
  • Automatic setting of the following properties of grid children: Margin, HorizontalAlignment, VerticalAlignment.

The AutoGrid is very convenient for creating tabular data input forms, which is a very common scenario. Since elements are auto indexed, it is very easy to modify the order of the fields or insert something in the middle.

Example:
<av:AutoGrid>
    <Grid.ColumnDefinitions>
        <ColumnDefinition Width="Auto" />
        <ColumnDefinition />
    </Grid.ColumnDefinitions>
    <Label Content="Some Field" />
    <TextBox />
</av:AutoGrid>

Last edited Aug 11, 2007 at 3:48 PM by aelij, version 1