[]
Represents a grid panel that automatically distributes child elements among grid cells.
public class AutoDistributionGrid : Grid, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild
The AutoDistributionGrid class provides the following additional functionality to the base Grid class.
Name | Description |
---|---|
AutoDistributionGrid() | Creates a new instance of AutoDistributionGrid. |
Name | Description |
---|---|
CellCountProperty | Identifies the CellCount dependency property. |
ChildrenFlowDirectionProperty | Identifies the ChildrenFlowDirection dependency property. |
ColumnCountProperty | Identifies the ColumnCount dependency property. |
FitCellsOfHeightProperty | Identifies the FitCellsOfHeight dependency property. |
FitCellsOfWidthProperty | Identifies the FitCellsOfWidth dependency property. |
RowCountProperty | Identifies the RowCount dependency property. |
VisualChildCountProperty | Identifies the VisualChildCount dependency property. |
Name | Description |
---|---|
CellCount | Gets a number of cells in the AutoDistributionGrid. This is a dependency property. |
ChildrenDistributionInfo | Gets a collection of DistributionInfo objects that allows to redefine a default placement of a certain child element. |
ChildrenFlowDirection | Gets or sets a value that determines a flow direction of child elements in the AutoDistributionGrid. The default value is Horizontal. This is a dependency property. |
ColumnCount | Gets or sets a value that determines a number of columns in the AutoDistributionGrid. This is a dependency property. |
FitCellsOfHeight | Allows the forcing of the AutoDistributionGrid to generate cells of the specified height, where a number of rows will be automatically adjusted so as to fully fit a maximum number of cells in a current grid height. The default value is NaN. This is a dependency property. |
FitCellsOfWidth | Allows the forcing of the AutoDistributionGrid to generate cells of the specified width, where a number of columns will be automatically adjusted so as to fully fit a maximum number of cells in a current grid width. The default value is NaN. This is a dependency property. |
RowCount | Gets or sets a value that determines a number of rows in the AutoDistributionGrid. This is a dependency property. |
VisualChildCount | Gets a number of child elements of the AutoDistributionGrid. This is a dependency property. |
Name | Description |
---|---|
MeasureOverride(Size) | Measures the child elements of a AutoDistributionGrid in anticipation of arranging them during the ArrangeOverride pass. |
OnRenderSizeChanged(SizeChangedInfo) | Raises the SizeChanged event, using the specified information as part of the eventual event data. |
OnVisualChildrenChanged(DependencyObject, DependencyObject) | Called when the visual children of a AutoDistributionGrid element change. |