Hub.Header property

Applies to Windows and Windows Phone

Gets or sets the content for the hub header.

Syntax


public:
property Object^ Header { 
   Object^ get();
   void set (Object^ value);
}


<Hub Header="headerString"/>



<Hub>
  <Hub.Header>
    headerObject
  </Hub.Header>
</Hub>


XAML Values

headerString

A text string that serves as header content.

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: System.Object [.NET] | Platform::Object [C++]

The content of the hub header. The default is null.

Remarks

Add a header to let users know the context of your Hub. This is often the name of your app. It's important to remember that although you can use arbitrary content in the header, the height of the header affects the amount of vertical space available for your hub section content. The header remains fixed in its position and doesn't scroll with the hub sections.

You can use a data template for the header by setting the HeaderTemplate property.

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

Hub
HeaderTemplate

 

 

Show:
© 2014 Microsoft