Table of Contents

Class TableViewColumnHeader

Namespace
WinUI.TableView
Assembly
WinUI.TableView.dll

Represents the header of a column in a TableView.

[TemplateVisualState(Name = "Normal", GroupName = "CommonStates")]
[TemplateVisualState(Name = "PointerOver", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Pressed", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Focused", GroupName = "FocusStates")]
[TemplateVisualState(Name = "Unfocused", GroupName = "FocusStates")]
[TemplateVisualState(Name = "Unsorted", GroupName = "SortStates")]
[TemplateVisualState(Name = "SortAscending", GroupName = "SortStates")]
[TemplateVisualState(Name = "SortDescending", GroupName = "SortStates")]
[TemplateVisualState(Name = "Filtered", GroupName = "FilterStates")]
[TemplateVisualState(Name = "Unfiltered", GroupName = "FilterStates")]
[WinRTRuntimeClassName("Microsoft.UI.Xaml.IUIElementOverrides")]
[WinRTExposedType(typeof(WinUI_TableView_TableViewRowWinRTTypeDetails))]
public class TableViewColumnHeader : ContentControl, IWinRTObject
Inheritance
object
DependencyObject
UIElement
FrameworkElement
Control
ContentControl
TableViewColumnHeader
Implements
IWinRTObject

Constructors

TableViewColumnHeader()

Initializes a new instance of the TableViewColumnHeader class.

public TableViewColumnHeader()

Properties

Column

Gets or sets the column associated with the header.

public TableViewColumn? Column { get; }

Property Value

TableViewColumn

Methods

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

availableSize Size

The 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()

OnCreateAutomationPeer()

When implemented in a derived class, returns class-specific AutomationPeer implementations for the Microsoft UI Automation infrastructure.

protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer

The class-specific AutomationPeer subclass to return.

OnDoubleTapped(DoubleTappedRoutedEventArgs)

Called before the DoubleTapped event occurs.

protected override void OnDoubleTapped(DoubleTappedRoutedEventArgs e)

Parameters

e DoubleTappedRoutedEventArgs

Event data for the event.

OnManipulationCompleted(ManipulationCompletedRoutedEventArgs)

Called before the ManipulationCompleted event occurs.

protected override void OnManipulationCompleted(ManipulationCompletedRoutedEventArgs e)

Parameters

e ManipulationCompletedRoutedEventArgs

Event data for the event.

OnManipulationDelta(ManipulationDeltaRoutedEventArgs)

Called before the ManipulationDelta event occurs.

protected override void OnManipulationDelta(ManipulationDeltaRoutedEventArgs e)

Parameters

e ManipulationDeltaRoutedEventArgs

Event data for the event.

OnPointerMoved(PointerRoutedEventArgs)

Called before the PointerMoved event occurs.

protected override void OnPointerMoved(PointerRoutedEventArgs e)

Parameters

e PointerRoutedEventArgs

Event data for the event.

OnPointerPressed(PointerRoutedEventArgs)

Called before the PointerPressed event occurs.

protected override void OnPointerPressed(PointerRoutedEventArgs e)

Parameters

e PointerRoutedEventArgs

Event data for the event.

OnPointerReleased(PointerRoutedEventArgs)

Called before the PointerReleased event occurs.

protected override void OnPointerReleased(PointerRoutedEventArgs e)

Parameters

e PointerRoutedEventArgs

Event data for the event.

OnTapped(TappedRoutedEventArgs)

Called before the Tapped event occurs.

protected override void OnTapped(TappedRoutedEventArgs e)

Parameters

e TappedRoutedEventArgs

Event data for the event.