This class provides a way to apply time slot group 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 TimeSlotGroupStyleSelector : C1StyleSelector |
Visual Basic |
---|
Public Class TimeSlotGroupStyleSelector _ Inherits C1StyleSelector |
Remarks
For the sample of using look at OneDayStyleBase in generic.xaml.
Create an instance of this class:
<local:TimeSlotGroupStyleSelector x:Key="TimeSlotGroupStyleSelector"/>
-
Define two group styles:
- with the key "PART_C1Scheduler_WorkHour_Style" for work hours;
- with the key "PART_C1Scheduler_FreeHour_Style" for free hours.
Specify style selector in the group definition:
<GroupStyle ContainerStyleSelector="{StaticResource TimeSlotGroupStyleSelector}">