Represents a grid panel that automatically distributes child elements among
grid cells.
Namespace:
C1.WPF.C1ScheduleAssembly: C1.WPF.C1Schedule (in C1.WPF.C1Schedule.dll)
Syntax
Remarks
The AutoDistributionGrid class provides the following additional functionality to the base Grid class.
- Scatters child elements by rows or columns depending on the ChildrenFlowDirection property value, with an ability to change a default placement for any child element by specifying the DistributionInfo objects in the ChildrenDistributionInfo collection.
- Introduces the settable and bindable RowCount and ColumnCount properties that allows defining of row and column count numerically, without adding/removing items in the Grid.RowDefinitions/ColumnDefinitions collections. Along with the introduced bindable VisualChildCount property it gives, for example, an ability to have as many rows as you have children.
- Gives an ability to automatically keeps a number of column and rows so as cells with a fixed width and/or height fully fit in the AutoDistributionGrid size. This is controlled by the FitCellsOfWidth and FitCellsOfHeight properties.
Inheritance Hierarchy
System..::..Object
System.Windows.Threading..::..DispatcherObject
System.Windows..::..DependencyObject
System.Windows.Media..::..Visual
System.Windows..::..UIElement
System.Windows..::..FrameworkElement
System.Windows.Controls..::..Panel
System.Windows.Controls..::..Grid
C1.WPF.C1Schedule..::..AutoDistributionGrid
System.Windows.Threading..::..DispatcherObject
System.Windows..::..DependencyObject
System.Windows.Media..::..Visual
System.Windows..::..UIElement
System.Windows..::..FrameworkElement
System.Windows.Controls..::..Panel
System.Windows.Controls..::..Grid
C1.WPF.C1Schedule..::..AutoDistributionGrid