Skip to content

Latest commit

 

History

History
40 lines (23 loc) · 1.06 KB

datepicker_yearvisible.md

File metadata and controls

40 lines (23 loc) · 1.06 KB
-api-id -api-type
P:Windows.UI.Xaml.Controls.DatePicker.YearVisible
winrt property

Windows.UI.Xaml.Controls.DatePicker.YearVisible

-description

Gets or sets a value that indicates whether the year selector is shown.

-xaml-syntax

<DatePicker YearVisible="bool"/>

-property-value

true if the year selector is shown; otherwise, false. The default is true.

-remarks

By default, the DatePicker shows ComboBox elements to select the month, day, and year. Set YearVisible to false to hide the ComboBox that displays or changes the year component of a date.

Here's the picker with the year field hidden.

A date picker with the year field hidden.

-examples

-see-also

DayVisible, MonthVisible, YearFormat, Date picker