Class TableViewHeaderRow
Represents the header row in a TableView.
[TemplateVisualState(Name = "Normal", GroupName = "CommonStates")]
[TemplateVisualState(Name = "NoButton", GroupName = "CornerButtonStates")]
[TemplateVisualState(Name = "SelectAllButton", GroupName = "CornerButtonStates")]
[TemplateVisualState(Name = "SelectAllButtonDisabled", GroupName = "CornerButtonStates")]
[TemplateVisualState(Name = "SelectAllCheckBox", GroupName = "CornerButtonStates")]
[TemplateVisualState(Name = "SelectAllCheckBoxDisabled", GroupName = "CornerButtonStates")]
[TemplateVisualState(Name = "OptionsButton", GroupName = "CornerButtonStates")]
[TemplateVisualState(Name = "OptionsButtonDisabled", GroupName = "CornerButtonStates")]
[WinRTRuntimeClassName("Microsoft.UI.Xaml.IUIElementOverrides")]
[WinRTExposedType(typeof(WinUI_TableView_TableViewHeaderRowWinRTTypeDetails))]
public class TableViewHeaderRow : Control, IWinRTObject
- Inheritance
-
objectDependencyObjectUIElementFrameworkElementControlTableViewHeaderRow
- Implements
-
IWinRTObject
Constructors
TableViewHeaderRow()
Initializes a new instance of the TableViewHeaderRow class.
public TableViewHeaderRow()
Fields
TableViewProperty
Identifies the TableView dependency property.
public static readonly DependencyProperty TableViewProperty
Field Value
- DependencyProperty
Properties
Headers
Gets the list of headers in the header row.
public IReadOnlyList<TableViewColumnHeader> Headers { get; }
Property Value
- IReadOnlyList<TableViewColumnHeader>
TableView
Gets or sets the TableView associated with the header row.
public TableView? TableView { get; set; }
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.
ClearHeaders()
Clears all headers from the header row.
public void ClearHeaders()
InsertHeader(TableViewColumnHeader)
Inserts a header at the specified index.
public void InsertHeader(TableViewColumnHeader header)
Parameters
headerTableViewColumnHeaderThe header to insert.
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()
RemoveHeader(TableViewColumnHeader)
Removes a header from the header row.
public void RemoveHeader(TableViewColumnHeader header)
Parameters
headerTableViewColumnHeaderThe header to remove.