A cross-platform UI framework for .NET
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

23 lines
633 B

using System;
using Avalonia.Controls;
namespace ControlCatalog.Pages
{
public partial class CalendarDatePickerPage : UserControl
{
public CalendarDatePickerPage()
{
InitializeComponent();
DatePicker1.SelectedDate = DateTime.Today;
DatePicker2.SelectedDate = DateTime.Today.AddDays(10);
DatePicker3.SelectedDate = DateTime.Today.AddDays(20);
DatePicker5.SelectedDate = DateTime.Today;
DatePicker4.TemplateApplied += (s, e) =>
{
DatePicker4.BlackoutDates?.AddDatesInPast();
};
}
}
}