Expand Minimize

ScrollViewer.TopHeader property

Applies to Windows and Windows Phone

Gets or sets the content of the top header.

Syntax


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


<ScrollViewer>
  <ScrollViewer.TopHeader>headerObject</ScrollViewer.TopHeader>
</ScrollViewer>


XAML Values

headerObject

An single object element that serves as header content. Use discretion when using objects as header content; not all objects are suitable for use within the limited presentation surface that appears for headers.

Property value

Type: UIElement

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.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Controls
Windows::UI::Xaml::Controls [C++]

Metadata

Windows.winmd

See also

ScrollViewer

 

 

Show:
© 2014 Microsoft