Scheduler for WPF and Silverlight | ComponentOne
C1.Silverlight.Schedule Namespace / TimeSlotStyleSelector Class
Members

In This Topic
    TimeSlotStyleSelector Class
    In This Topic
    This class provides a way to apply time slot styles for working/free hours in DayView/WorkWeekView modes.
    Object Model
    TimeSlotStyleSelector Class
    Syntax
    'Declaration
     
    
    Public Class TimeSlotStyleSelector 
       Inherits C1.Silverlight.C1StyleSelector
    public class TimeSlotStyleSelector : C1.Silverlight.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 styles:
      • with the key "C1Scheduler_WorkSlot_Style" for work hours;
      • with the key "C1Scheduler_FreeSlot_Style" for free hours.
    3. Define two optional styles:
      • with the key "C1Scheduler_TopWorkSlot_Style" for the top slot in every work hour;
      • with the key "C1Scheduler_TopFreeSlot_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
       C1.Silverlight.C1StyleSelector
          C1.Silverlight.Schedule.TimeSlotStyleSelector

    See Also