ScrollViewer.TopLeftHeader Property

Definition

Gets or sets the content of the top, left header.

Equivalent WinUI property: Microsoft.UI.Xaml.Controls.ScrollViewer.TopLeftHeader.

public:
 property UIElement ^ TopLeftHeader { UIElement ^ get(); void set(UIElement ^ value); };
UIElement TopLeftHeader();

void TopLeftHeader(UIElement value);
public UIElement TopLeftHeader { get; set; }
var uIElement = scrollViewer.topLeftHeader;
scrollViewer.topLeftHeader = uIElement;
Public Property TopLeftHeader As UIElement
<ScrollViewer>
  <ScrollViewer.TopLeftHeader>headerObject</ScrollViewer.TopLeftHeader>
</ScrollViewer>

Property Value

UIElement

The content of the top, left header.

Remarks

The LeftHeader, TopHeader, and TopLeftHeader properties can be set only when ScrollViewer content's HorizontalAlignment is Left and VerticalAlignment is Top.

The top left header doesn't scroll in any direction.

Applies to