This class provides a way to apply time slot styles for working/free hours
in DayView/WorkWeekView modes.
Namespace:
C1.Silverlight.ScheduleAssembly: C1.Silverlight.Schedule (in C1.Silverlight.Schedule.dll)
Syntax
C# |
---|
public class TimeSlotStyleSelector : C1StyleSelector |
Visual Basic |
---|
Public Class TimeSlotStyleSelector _ Inherits C1StyleSelector |
Remarks
For the sample of using look at OneDayStyle in generic.xaml.
Create an instance of this class:
<local:TimeSlotStyleSelector x:Key="TimeSlotStyleSelector"/>
-
Define two group styles:
- with the key "PART_C1Scheduler_WorkHour_Style" for work hours;
- with the key "PART_C1Scheduler_FreeHour_Style" for free hours.
-
Define two optional group styles:
- with the key "PART_C1Scheduler_TopWorkHour_Style" for the top slot in every work hour;
- with the key "PART_C1Scheduler_TopFreeHour_Style" for the top slot in every free hour.
Specify ItemContainerStyleSelector property for the C1SchedulerPresenter object:
<local:C1SchedulerPresenter ItemContainerStyleSelector="{StaticResource TimeSlotTemplateSelector}" />