DatePicker.Orientation property

Applies to Windows and Windows Phone

Gets or sets a value that indicates whether the day, month, and year selectors are stacked horizontally or vertically.

Syntax


public Orientation Orientation { get; set; }


<DatePicker Orientation="Horizontal"/>
-or-
<DatePicker Orientation="Vertical"/>

Property value

Type: Orientation

A named constant of the enumeration that indicates whether the day, month, and year selectors are stacked horizontally or vertically. The default is Horizontal.

Remarks

By default, the DatePicker shows the month, day, and year pickers in a horizontal row. You can change them to a vertical stack by setting the Orientation property to Vertical.

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

DatePicker

 

 

Show:
© 2014 Microsoft