Silverlight Table Reference
The Table exposes several properties for controlling various aspects of the Table and its behaviour.
Properties for Liquid.Table
Below are the available properties complete with descriptions.
Property Name
Type
Description
SelectedCellRow
Int32
Gets the row index for the selected cell.
SelectedCellColumn
Int32
Gets the column index for the selected cell.
SelectedRowStart
Int32
Gets the first selected row index.
SelectedColumnStart
Int32
Gets the first selected column index.
SelectedRowCount
Int32
Gets the number of rows selected.
SelectedColumnCount
Int32
Gets the number of columns selected.
SelectMode
SelectMode
Gets or sets the selection mode.
HeaderRows
Int32
Gets or sets the number of header rows.
HeaderColumns
Int32
Gets or sets the number of header columns.
AutoWidth
Boolean
Gets or sets whether the table stretches to full width.
MinEditableRowHeight
Double
Gets or sets the minimum height a row can be dragged.
MinEditableColumnWidth
Double
Gets or sets the minimum height a columns can be dragged.
EnableEditingFadeout
Boolean
Gets or sets whether the table should fade-out during editing.
StyleID
String
Gets or sets the table style ID.
Selected
List`1
Gets the selected table cells.
Methods for Liquid.Table
Below are the available methods, complete with parameters and descriptions.
Method Name
Description
Parameters
AddRow()
Adds a new row to the bottom of the table.
AddRow(List<UIElement>)
Adds a new row to the bottom of the table containing the provided elements.
Parameters
elements
Any element derived from UIElement
AddColumn()
Adds a new column to the right of the table.
AddColumn(List<UIElement>)
Adds a new column to the right of the table containing the provided elements.
Parameters
elements
Any element derived from UIElement
DeleteRow(Int32)
Deletes the specified Row including all elements that refer to it.
Parameters
rowIndex
Row index to delete
GetRowElements(Int32)
Gets a collection of elements with a matching row index.
Parameters
Returns: Element collection
GetColumnElements(Int32)
Gets a collection of elements with a matching column index.
Parameters
Returns: Element collection
DeleteColumn(Int32)
Deletes the specified Column including all elements that refer to it.
Parameters
columnIndex
Column index to delete
InsertColumn(Int32, Int32)
Creates a new column with default richtextblock content.
Parameters
columnIndex
The column index to insert the new column
InsertColumn(Int32, Nullable<GridLength>, List<UIElement>)
Creates a new column and populates the cells with the provided elements.
Parameters
columnIndex
The column index to insert the new column
elements
Any element derived from UIElement
InsertRow(Int32, Int32)
Creates a new row with default richtextblock content.
Parameters
rowIndex
The row index to insert the new row
count
Number of rows to insert
InsertRow(Int32, Nullable<GridLength>, List<UIElement>)
Creates a new row and populates the cells with the provided elements.
Parameters
rowIndex
The row index to insert the new row
elements
Any element derived from UIElement
SwapRows(Int32, Int32)
Swaps two rows around.
SetColumnsToPixelWidth()
Fixes all column widths to pixel widths.