Scheduler Components and Controls > Scheduler for Silverlight Appearance > Selecting Styles and Templates for VisualIntervals |
In order to provide a fast and easy way for selecting appropriate styles and templates for C1Scheduler.VisualIntervals, the C1Scheduler control provides five classes: TimeSlotGroupStyleSelector, DayGroupStyleSelector, TimeSlotTemplateSelector, DayIntervalStyleSelector and TimeSlotStyleSelector.
The TimeSlotGroupStyleSelector class provides a way to apply time slot group styles for working and free hours in Day View and Working Week View modes. To use it:
<local:TimeSlotGroupStyleSelector x:Key="TimeSlotGroupStyleSelector"/>
<GroupStyle ContainerStyleSelector="{StaticResource TimeSlotGroupStyleSelector}">
The DayGroupStylesSelector class provides a way to apply day group styles for an Office 2003/2007 look in Day View and Working Week View modes. To use it:
<local:DayGroupStyleSelector x:Key="DayGroupStyleSelector"/>
<GroupStyle ContainerStyleSelector="{StaticResource DayGroupStyleSelector}">
The TimeSlotTemplateSelector class provides a way to choose a DataTemplate for the VisualInterval object representing the single time slot in Day View and Working Week View modes. To use it:
<local:TimeSlotTemplateSelector x:Key="TimeSlotTemplateSelector"/>
<local:C1SchedulerPresenter ItemTemplateSelector="{StaticResource TimeSlotTemplateSelector}" />
Note that if you use this method for choosing a VisualInterval DataTemplate, you shouldn't set the C1Scheduler.VisualIntervalTemplate property.
The DayIntervalStyleSelector class provides a way to apply day group styles for ordinal/current days. To use it:
<local:DayIntervalStyleSelector x:Key=”DayIntervalStyleSelector"/>
<GroupStyle ContainerStyleSelector="{StaticResource DayIntervalStyleSelector}">
The TimeSlotStyleSelector class provides a way to apply time slot styles for working and free hours in Day View and Working Week View modes. To use it:
Create an instance of the class:
<local:TimeSlotStyleSelector x:Key="TimeSlotStyleSelector"/>
<local:C1SchedulerPresenter ItemContainerStyleSelector="{StaticResource TimeSlotTemplateSelector}" />