Search
Customizing the Appearance of Items

There are several ways to customize the appearance of items in MindFusion.Scheduling for .NET MAUI.

You can customize the general appearance of items in a schedule, by setting various properties in Calendar.ItemSettings. This would affect the appearance of all items in the current schedule. To customize the appearance of individual item, adjust its Style, SelectedStyle, PointedStyle, and PointedSelectedStyle properties. The particular style that will be used when the item is rendered depends on the state of the item. Style is used when the item is neither selected nor pointed by the user. SelectedStyle is used when the item is selected and not pointed by the user. PointedStyle is used when the item is pointed by the user but not selected and, finally, PointedSelectedStyle is used when the item is selected and pointed at the same time. The item styles support the cascading paradigm described in Styles and Themes. The most general item styles are defined in the current theme. They cannot be changed by any means except by changing the theme itself. The styles defined in Calendar.ItemSettings are of higher priority and any of their properties that are explicitly specified will be used prior those from the theme. The styles defined in individual items are of highest priority and will always be used first, when present.

You can use custom drawing to perform additional drawing on an item by setting the Calendar.CustomDraw property to CalendarItem or TimetableItem and handling the Draw event.