Visual Structure

Here are described all visual elements used in the DatePicker for .NET MAUI.

DatePicker Structure before and after a date/time is selected

DatePicker Visual Structure

Picker Popup Visual Structure

DatePicker Popup Visual Structure DatePicker Popup Visual Structure

Legend

  • Placeholder - the text visualized before picking a date/time. Placeholder could be customized through the PlaceholderTemplate property.
  • DisplayStringFormat - the text visualized after a date/time is picked.
  • Header - the text displayed in the popup header. It could be set a direct text through the HeaderLabelText property or fully customize the popup header using the HeaderTemplate property.
  • SpinnerHeader - the text visualized for spinner header depending on the values to be picked. For example if the SpinnerFormatString is d the text visualized for spinner header will be Month Day Year.
  • Spinner - displays items in a list.
  • SelectionHighlight - highlight the current selected date when the popup is open.
  • Footer - the footer of the popup. By default is contains OK and Cancel Buttons. It could be customized through the FooterTemplate property.
In this article
Not finding the help you need?