[ContentProperty("Rows")] public class DynamicTable : DynamicItem
Table item for the DynamicLayout
Remarks: This represents a table, which in a dynamic layout is used to represent a vertical section. The maximum number of items in the Rows determines the columns of the table.

Constructors

Properties

Padding

#
public Padding? Padding { get; set; }
Gets or sets the padding around the table cells

Rows

#
public Collection<DynamicRow> Rows { get; }
Gets or sets the collection of rows in the table

Spacing

#
public Size? Spacing { get; set; }
Gets or sets the spacing between the table cells

Table

#
public TableLayout Table { get; }
Gets the table layout this item represents

Visible

#
public bool Visible { get; set; }
Gets or sets a value indicating whether this DynamicTable is visible.

XScale

public bool? XScale { get; set; }
Gets or sets the horizontal scale of the item
inherited fromDynamicItem
Remarks: When true, the control takes up all remaining horizontal space available. If there is more than one item with this set to true, then they share the remaining space equally.
The horizontal scale.

YScale

public bool? YScale { get; set; }
Gets or sets the vertical scale of the item
inherited fromDynamicItem
Remarks: When true, the control takes up all remaining vertical space available. If there is more than one item with this set to true, then they share the remaining space equally.
The vertical scale.

Methods

Add

#
public void Add(DynamicItem item)
Add the specified item to the current row

AddRow

#
public void AddRow(DynamicItem item)
Adds the specified item to a new row

AddRow

#
public void AddRow(DynamicRow row)
Adds the specified row to the table

Create

#
public override Control Create(DynamicLayout layout)
Creates the content for this item

Create

public virtual void Create(DynamicLayout layout, TableLayout parent, int x, int y)
Create the item and add to the specified layout and co-ordinates
inherited fromDynamicItem
layout (DynamicLayout)Top level layout
parent (TableLayout)Parent table to add this item to
x (int)The x coordinate in the table to add to
y (int)The y coordinate in the table to add to