Share via


ScrollViewer.TopHeader Property

Definition

Gets or sets the content of the top header.

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

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

Property Value

The content of the top 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 header scrolls horizontally, but not vertically.

Applies to