Classes
AddedRemovedEvent
AlertElement
AnchorContainerElement
ArrowShape
ButtonElement
CanvasElement
CanvasManager
CheckboxElement
CheckboxSkinElement
CollectionChangedEvent
CollectionSort
ColorPickerButtonElement
ColorPickerElement
ContainerBaseElement
CursorDefinition
DataGridColumnDefinition
DataGridDataRenderer
DataGridElement
DataGridHeaderColumnDividerSkinElement
DataGridHeaderElement
DataGridHeaderItemRenderer
DataGridItemData
DataGridItemRendererBase
DataGridLabelItemRenderer
DataListData
DataListElement
DataRendererBaseElement
DataRendererLabelElement
DatePickerButtonElement
DatePickerElement
DispatcherEvent
DrawMetrics
DropdownArrowButtonSkinElement
DropdownBaseElement
DropdownElement
ElementEvent
ElementGridItemClickEvent
ElementKeyboardEvent
ElementListItemClickEvent
ElementMouseEvent
ElementMouseWheelEvent
EllipseShape
EventDispatcher
FillBase
GridContainerElement
GridContainerRowColumnDefinition
ImageElement
IpInputElement
LabelElement
LinearGradientFill
ListCollection
ListContainerElement
ProgressElement
RadioButtonElement
RadioButtonSkinElement
RoundedRectangleShape
ScrollBarElement
ScrollButtonSkinElement
ShapeBase
SkinnableElement
SolidFill
StyleableBase
StyleChangedEvent
StyleData
StyleDefinition
StyleProxy
TextAreaElement
TextElement
TextFieldElement
TextInputElement
TimeInputElement
ToggleButtonElement
ToggleButtonGroup
Tween
ViewportElement


GridContainerElement

GridContainerElement is used to layout children in a grid or table-like manner.
This is effectively a two dimensional ListContainerElement that also supports
elements spanning multiple rows and/or columns.
The grid container does not respect any layout styling of cell elements (other
than measured/min sizes), rather it only respects layout styling of supplied row and
column definitions (GridContainerRowColumnDefinition). It is recommended that
other containers (such as ListContainerElements) are used for the cell elements
that wrap the content elements being added to the GridContainerElement. This way the
cells may stretch as necessary and content elements can be independently aligned
within the cell without stretching the content element itself.
The GridContainerElement is more expensive than a ListContainerElement so should
only be used when it is needed to maintain row/column alignment.

Inheritance:     GridContainerElement ➞ ContainerBaseElementCanvasElementStyleableBaseStyleDefinitionEventDispatcher ➞ Object

Styles
Show Inherited
Style Defined By
ClipContent     :    boolean [Inheritable] GridContainerElement
Determines if out of bounds rendering is allowed. If true the element will clip all rendering
and children's rendering to the elements bounding box. This style is inheritable for container elements.
 
LayoutHorizontalAlign     :    String GridContainerElement
Horizontal alignment to be used when the grid does not fill all available space. Allowable values are "left", "right", or "center".
 
LayoutHorizontalGap     :    int GridContainerElement
Space in pixels to leave between columns.
 
LayoutVerticalAlign     :    String GridContainerElement
Vertical alignment to be used when the grid does not fill all available space. Allowable values are "top", "bottom", or "middle".
 
LayoutVerticalGap     :    int GridContainerElement
Space in pixels to leave between rows.
 


Events
Show Inherited


Public Functions
Show Inherited
Function Defined By
GridContainerElement() [Constructor] GridContainerElement
Creates new GridContainerElement instance.
 
clearCellElements() GridContainerElement
Clears all element from the GridContainerElement.
 
clearColumnDefinitions() GridContainerElement
Clears all column definitions.
 
clearRowDefinitions() GridContainerElement
Clears all row definitions.
 
getCellElement(rowIndex, columnIndex) GridContainerElement
Gets the CanvasElement associated with (or spanning) the supplied row and column indexes.
  rowIndex     :    int
The row index to return the associated CanvasElement.
  columnIndex     :    int
The column index to return the associated CanvasElement.
  returns     :    CanvasElement
The CanvasElement associated with the supplied row and column index or null.
 
getColumnDefinition(index) GridContainerElement
Gets the column definition associated with the supplied column index.
  index     :    int
The column index to return the associated GridContainerRowColumnDefinition.
  returns     :    GridContainerRowColumnDefinition
The GridContainerRowColumnDefinition associated with the supplied column index or null.
 
getRowDefinition(index) GridContainerElement
Gets the row definition associated with the supplied row index.
  index     :    int
The row index to return the associated GridContainerRowColumnDefinition.
  returns     :    GridContainerRowColumnDefinition
The GridContainerRowColumnDefinition associated with the supplied row index or null.
 
setCellElement(element, rowIndexStart, columnIndexStart, rowIndexEnd, columnIndexEnd) GridContainerElement
Sets an element to be used for the supplied row and column indexes
or spans. If any element(s) already occupies the supplied
row or column spans, they will be removed.
  element     :    CanvasElement
The element to insert into grid spanning the supplied row and column indexes.
  rowIndexStart     :    int
The row index to insert the element.
  columnIndexStart     :    int
The column index to insert the element.
  rowIndexEnd     :    int
Optional - If the element is to span multiple rows this is the last
row index (inclusive) the element should occupy. If omitted this will
be automatically set to rowIndexStart.
  columnIndexEnd     :    int
Optional - If the element is to span multiple columns this is the last
column index (inclusive) the element should occupy. If omitted this will
be automatically set to columnIndexStart.
 
setColumnDefinition(definition, index) GridContainerElement
Sets a column definition to the supplied column index.
  definition     :    GridContainerRowColumnDefinition
The definition to apply to the supplied column index.
  index     :    int
The column index to apply the definition.
 
setRowDefinition(definition, index) GridContainerElement
Sets a row definition to the supplied row index.
  definition     :    GridContainerRowColumnDefinition
The definition to apply to the supplied row index.
  index     :    int
The row index to apply the definition.
 


Internal Members
Show Inherited


Internal Functions
Show Inherited
Function Defined By
_onRowColumnDefinitionChanged(styleChangedEvent) GridContainerElement
Event handler for row and columns GridContainerRowColumnDefinition "stylechanged" event.
Updates the GridContainerElement.
  styleChangedEvent     :    StyleChangedEvent
The StyleChangedEvent to process.