A CalendarStyle is a set of appearance attributes, such as colors, brushes and margins that can be applied to schedule items or calendar view cells as an integral entity. Styles support cascading propagation of attributes up through the visualization hierarchy. Attributes defined in more specific styles override the attributes defined in more general styles. If a style leaves some attribute values undefined, the ones specified in a more general style or in the current theme are used. For example, the style associated with an item (through Calendar.SetItemStyle) cascades to ItemSettings.CalendarStyle, which cascades to the corresponding property in the current theme. If a property in the item's style is defined, it will be used. Otherwise the style system will take the value of this property from ItemSettings.CalendarStyle. If the property is not present there too, the value will be taken from the current theme. A property is considered undefined if its value is set to null (Nothing in Visual Basic).
Themes are complete sets of styles and attributes that can be applied to the calendar and its views. The themes contain values for all properties in the MonthSettings, TimetableSettings, ListViewSettings, and so on, defining the appearance of the various calendar views. MindFusion.Scheduling for Silverlight comes with several predefined themes: Standard, Windows2003, Silver, Lila and Vista. Use the Calendar.Theme property to apply a specific theme.
The following table illustrates how various views would look like when particular appearance Theme is applied to them.
Standard | Windows2003 | Lila | Silver | Vista | Light | |
---|---|---|---|---|---|---|
List View | ||||||
Week Range | ||||||
Month Range | ||||||
Timetable | ||||||
Resource View |