-api-id | -api-type |
---|---|
P:Windows.UI.Xaml.Controls.DatePicker.YearVisible |
winrt property |
Gets or sets a value that indicates whether the year selector is shown.
<DatePicker YearVisible="bool"/>
true if the year selector is shown; otherwise, false. The default is true.
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.