This class provides a way to apply time slot styles for working/free hours in DayView/WorkWeekView modes.

Namespace:  C1.Silverlight.Schedule
Assembly:  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.
  1. Create an instance of this class:

    <local:TimeSlotStyleSelector x:Key="TimeSlotStyleSelector"/>

  2. Define two group styles:
    • with the key "PART_C1Scheduler_WorkHour_Style" for work hours;
    • with the key "PART_C1Scheduler_FreeHour_Style" for free hours.
  3. 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.
  4. Specify ItemContainerStyleSelector property for the C1SchedulerPresenter object:

    <local:C1SchedulerPresenter ItemContainerStyleSelector="{StaticResource TimeSlotTemplateSelector}" />

Inheritance Hierarchy

System..::..Object
  C1StyleSelector
    C1.Silverlight.Schedule..::..TimeSlotStyleSelector

See Also