[c#]
calendar.OnMonthCellLoaded += Calendar_OnMonthCellLoaded;
…
private void Calendar_OnMonthCellLoaded(object sender, MonthCellLoadedEventArgs e)
{
if (e.Date == new DateTime(2019, 1, 1))
{
e.BackgroundColor = Color.Red;
}
else if (e.Date == new DateTime(2019, 1, 6))
{
e.BackgroundColor = Color.Blue;
}
}
|
[c#]
calendar.OnYearCellLoaded += Calendar_OnYearCellLoaded;
}
private void Calendar_OnYearCellLoaded(object sender, YearCellLoadedEventArgs e)
{
e.View = customView;
}
|