Syncfusion Maui sfCalendar SpecialDayPredicate

问题描述 投票:0回答:0

我想在 .Net Maui 的 Syncfusion sfCalendar 中使用 SpecialDates,但是它不起作用,它告诉我使用 SpecialDayPredicate。我已经尝试使用它一段时间了,但我似乎无法弄清楚它是如何工作的,而且我也没有找到合适的文档。

这是我到目前为止没有成功的尝试:

CalendarIconDetails cd = new CalendarIconDetails();
            cd.Fill = Color.FromArgb("ffd0d0d0");

            cal.MonthView.SpecialDayPredicate = (date) =>
            {
                if (obj.dates.Contains(date))
                {
                    return cd;
                }
                return null;
            };
c# maui syncfusion syncfusion-calendar
© www.soinside.com 2019 - 2024. All rights reserved.