Class TableViewRowPresenter
Represents a control that presents visuals for the TableViewRow.
[TemplateVisualState(Name = "DetailsVisible", GroupName = "DetailsStates")]
[TemplateVisualState(Name = "DetailsCollapsed", GroupName = "DetailsStates")]
[TemplateVisualState(Name = "DetailsButtonVisible", GroupName = "DetailsButtonStates")]
[TemplateVisualState(Name = "DetailsButtonCollapsed", GroupName = "DetailsButtonStates")]
[WinRTRuntimeClassName("Microsoft.UI.Xaml.IUIElementOverrides")]
[WinRTExposedType(typeof(WinUI_TableView_TableViewRowPresenterWinRTTypeDetails))]
public class TableViewRowPresenter : Control, IWinRTObject
- Inheritance
-
objectDependencyObjectUIElementFrameworkElementControlTableViewRowPresenter
- Implements
-
IWinRTObject
Constructors
TableViewRowPresenter()
Initializes a new instance of the TableViewRowPresenter class.
public TableViewRowPresenter()
Properties
Cells
Gets the list of cells in the presenter.
public IReadOnlyList<TableViewCell> Cells { get; }
Property Value
- IReadOnlyList<TableViewCell>
TableView
Gets or sets the TableView associated with the presenter.
public TableView? TableView { get; }
Property Value
TableViewRow
Gets or sets the TableViewRow associated with the presenter.
public TableViewRow? TableViewRow { get; }
Property Value
Methods
ArrangeOverride(Size)
Provides the behavior for the "Arrange" pass of layout. Classes can override this method to define their own "Arrange" pass behavior.
protected override Size ArrangeOverride(Size finalSize)
Parameters
finalSizeSizeThe final area within the parent that this object should use to arrange itself and its children.
Returns
- Size
The actual size that is used after the element is arranged in layout.
ClearCells()
Clears all cells from the presenter.
public void ClearCells()
InsertCell(TableViewCell)
Inserts a cell at the specified index.
public void InsertCell(TableViewCell cell)
Parameters
cellTableViewCellThe cell to insert.
MeasureOverride(Size)
Provides the behavior for the "Measure" pass of the layout cycle. Classes can override this method to define their own "Measure" pass behavior.
protected override Size MeasureOverride(Size availableSize)
Parameters
availableSizeSizeThe available size that this object can give to child objects. Infinity can be specified as a value to indicate that the object will size to whatever content is available.
Returns
- Size
The size that this object determines it needs during layout, based on its calculations of the allocated sizes for child objects or based on other considerations such as a fixed container size.
OnApplyTemplate()
Invoked whenever application code or internal processes (such as a rebuilding layout pass) call ApplyTemplate. In simplest terms, this means the method is called just before a UI element displays in your app. Override this method to influence the default post-template logic of a class.
protected override void OnApplyTemplate()
RemoveCell(TableViewCell)
Removes a cell from the presenter.
public void RemoveCell(TableViewCell cell)
Parameters
cellTableViewCellThe cell to remove.