DatePicker.Orientation DatePicker.Orientation DatePicker.Orientation DatePicker.Orientation Property

Definition

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

public : Orientation Orientation { get; set; }
Orientation Orientation();

void Orientation(Orientation orientation);
public Orientation Orientation { get; set; }
Public ReadWrite Property Orientation As Orientation
<DatePicker Orientation="Horizontal"/>
-or-
<DatePicker Orientation="Vertical"/>

Property Value

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.