[]
        
(Showing Draft Content)

C1.WPF.Calendar.C1CalendarResources

C1CalendarResources Class

The C1CalendarResources keeps the set of resources used by the C1MultiMonthCalendar derived controls. Static fields of this class return default C1MultiMonthCalendar's themes.

Inheritance
C1CalendarResources
Namespace: C1.WPF.Calendar
Assembly: C1.WPF.Calendar.dll
Syntax
public class C1CalendarResources : ThemeResources
Remarks

Resource lookup behavior:

  • If Theme property is set to something other than Classic System Colors theme, the lookup process checks for the requested key within the resource dictionary defined by the current control theme
  • The lookup process checks resources in a usual way (in page, window or application resources)
  • The lookup process checks resources in default theme dictionary.

Constructors

Name Description
C1CalendarResources()

Initializes the new instance of the C1CalendarResources class.

Fields

Name Description
Default

Gets the ResourceDictionary representing Default theme. This theme uses system-defined colors. This is a default theme for calendar controls.

Properties

Name Description
DayOfWeekSlotStyle

Gets the Style object describing day of week slot style.

DayOfWeekSlotTemplate

Gets the DataTemplate defining a UI representation of a single day of week.

DaySlotStyle

Gets the Style object describing the style of single day slot.

DaySlotTemplate

Gets the DataTemplate defining a UI representation of a single day of a month.

DaysOfWeekPanel

Gets the ItemsPanelTemplate defining the panel that lays out elements representing days of week.

DaysPanel

Gets the ItemsPanelTemplate object defining the panel that lays out elements representing days of a month.

MonthCalendarStyle

Gets the Style object describing style of a single month in a multi-month calendar.

MonthSlotStyle

Gets the Style object describing style of C1CalendarPresenter elements which are the root elements of a visual tree representing a single month in a multi-month calendar.

MonthsPanel

Gets the ItemsPanelTemplate defining the panel that lays out elements representing separate months in a multi-month calendar.

Theme

Gets or sets the ResourceDictionary object used as the theme for the control.

Methods

Name Description
RefreshResources()

Refreshes resources according to the currently selected theme.

TryFindThemeResource(object)

TryFindThemeResource