Header property

DatePicker.Header property

Gets or sets the content for the control's header.

Syntax


public object Header { get; set; }


<DatePicker Header="headerString"/>



<DatePicker>
  <DatePicker.Header>headerObject</DatePicker.Header>
</DatePicker>


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 control's header. The default is null.

Remarks

You can set a data template for the Header value by using the HeaderTemplate property.

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

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

DatePicker
HeaderTemplate
Quickstart: Adding a DatePicker

 

 

Show:
© 2016 Microsoft