Class CalendarIconDetails
Holds the information about special date icon and its color for the SfCalendar.
Inheritance
System.Object
CalendarIconDetails
Namespace: Syncfusion.Maui.Toolkit.Calendar
Assembly: Syncfusion.Maui.Toolkit.dll
Syntax
public class CalendarIconDetails : Element, IThemeElement
Constructors
CalendarIconDetails()
Initializes a new instance of the CalendarIconDetails class.
Declaration
public CalendarIconDetails()
Fields
FillProperty
Identifies the Fill dependency property.
Declaration
public static readonly BindableProperty FillProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for Fill dependency property. |
Properties
Fill
Gets or sets the color of special date icon for the SfCalendar.
Declaration
public Brush Fill { get; set; }
Property Value
Type |
---|
Microsoft.Maui.Controls.Brush |
Examples
The following code demonstrates, how to use the fill property in calendar.
this.calendar.MonthView.SpecialDayPredicate = (date) =>
{
if (date.Date == DateTime.Now.AddDays(2).Date)
{
CalendarIconDetails iconDetails = new CalendarIconDetails();
iconDetails.Fill = Colors.Red;
return iconDetails;
}
return null;
};
Icon
Gets or sets the type of special date icon for the SfCalendar.
Declaration
public CalendarIcon Icon { get; set; }
Property Value
Type |
---|
CalendarIcon |
Examples
The following code demonstrates, how to use the calendar icon property in calendar.
this.calendar.MonthView.SpecialDayPredicate = (date) =>
{
if (date.Date == DateTime.Now.AddDays(2).Date)
{
CalendarIconDetails iconDetails = new CalendarIconDetails();
iconDetails.Icon = CalendarIcon.Dot;
return iconDetails;
}
return null;
};