Note: This document is auto-generated by
scripts/generate_control_reference_docs.py. Do not edit manually.
Avalonia.Controls.DatePickerAvalonia.ControlsAvalonia.Controlssrc/Avalonia.Controls/DateTimePickers/DatePicker.csTemplatedControlcontrolpublic static readonly StyledProperty<string> DayFormatProperty = AvaloniaProperty.Register<DatePicker, string>(nameof(DayFormat), "%d");public static readonly StyledProperty<bool> DayVisibleProperty = AvaloniaProperty.Register<DatePicker, bool>(nameof(DayVisible), true);public static readonly StyledProperty<DateTimeOffset> MaxYearProperty = AvaloniaProperty.Register<DatePicker, DateTimeOffset>(nameof(MaxYear), DateTimeOffset.MaxValue, coerce: CoerceMaxYear);public static readonly StyledProperty<DateTimeOffset> MinYearProperty = AvaloniaProperty.Register<DatePicker, DateTimeOffset>(nameof(MinYear), DateTimeOffset.MinValue, coerce: CoerceMinYear);public static readonly StyledProperty<string> MonthFormatProperty = AvaloniaProperty.Register<DatePicker, string>(nameof(MonthFormat), "MMMM");public static readonly StyledProperty<bool> MonthVisibleProperty = AvaloniaProperty.Register<DatePicker, bool>(nameof(MonthVisible), true);public static readonly StyledProperty<string> YearFormatProperty = AvaloniaProperty.Register<DatePicker, string>(nameof(YearFormat), "yyyy");public static readonly StyledProperty<bool> YearVisibleProperty = AvaloniaProperty.Register<DatePicker, bool>(nameof(YearVisible), true);public static readonly StyledProperty<DateTimeOffset?> SelectedDateProperty = AvaloniaProperty.Register<DatePicker, DateTimeOffset?>(nameof(SelectedDate), defaultBindingMode: BindingMode.TwoWay, enableDataValidation: true);public DatePicker() {public string DayFormat {public bool DayVisible {public DateTimeOffset MaxYear {public DateTimeOffset MinYear {public string MonthFormat {public bool MonthVisible {<DatePicker x:Name="SampleDatePicker" />
using Avalonia.Controls;
var control = new DatePicker();