Scheduler for WPF | ComponentOne
C1.WPF.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.WPF.C1StyleSelector
    public class TimeSlotStyleSelector : C1.WPF.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
       System.Windows.Controls.StyleSelector
          C1.WPF.C1StyleSelector
             C1.WPF.Schedule.TimeSlotStyleSelector

    See Also