C# Class Open.Core.UI.Controls.AutoGrid

Automatically generates rows and columns based on a data-source.
Any 'RowDefinition' and 'ColumnDefinition' items that are declared within the Grid are overridden by the control. Declare columns using the extended 'Columns' propertying with the 'AutoColumnDefinition' object.
Inheritance: System.Windows.Controls.Grid
Show file Open project: philcockfield/Open.TestHarness.SL Class Usage Examples

Public Properties

Property Type Description
ItemsSourceProperty System.Windows.DependencyProperty
MaxRowHeightProperty System.Windows.DependencyProperty
MinRowHeightProperty System.Windows.DependencyProperty
RowHeightProperty System.Windows.DependencyProperty

Public Methods

Method Description
AutoGrid ( ) : System.Linq
HandleLoaded ( object sender, RoutedEventArgs e ) : void

Private Methods

Method Description
InitializeColumns ( ) : void
InsertRow ( int rowIndex, object model ) : void
LoadRows ( ) : void
OnItemsSourceChanged ( ) : void
OnRowAdded ( int index ) : void
OnRowRemoved ( int index ) : void
ReIndexRows ( ) : void
RemoveRow ( int rowIndex ) : void

Method Details

AutoGrid() public method

public AutoGrid ( ) : System.Linq
return System.Linq

HandleLoaded() public method

public HandleLoaded ( object sender, RoutedEventArgs e ) : void
sender object
e System.Windows.RoutedEventArgs
return void

Property Details

ItemsSourceProperty public static property

Gets or sets the collection of items being generated within the grid.
public static DependencyProperty,System.Windows ItemsSourceProperty
return System.Windows.DependencyProperty

MaxRowHeightProperty public static property

Gets or sets the maximum height to use when creating the row.
public static DependencyProperty,System.Windows MaxRowHeightProperty
return System.Windows.DependencyProperty

MinRowHeightProperty public static property

Gets or sets the minimum height to use when creating the row.
public static DependencyProperty,System.Windows MinRowHeightProperty
return System.Windows.DependencyProperty

RowHeightProperty public static property

Gets or sets the height to apply to use when creating the row.
public static DependencyProperty,System.Windows RowHeightProperty
return System.Windows.DependencyProperty