ComponentOne Scheduler for WPF and Silverlight
C1.WPF.Schedule Namespace / AutoDistributionGrid Class
Members

In This Topic
    AutoDistributionGrid Class
    In This Topic
    Represents a grid panel that automatically distributes child elements among grid cells.
    Object Model
    AutoDistributionGrid Class
    Syntax
    'Declaration
     
    
    Public Class AutoDistributionGrid 
       Inherits System.Windows.Controls.Grid
    public class AutoDistributionGrid : System.Windows.Controls.Grid 
    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.Schedule.AutoDistributionGrid

    See Also