[]
        
(Showing Draft Content)

C1.WPF.Schedule.TimeSlotStyleSelector

TimeSlotStyleSelector Class

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

Inheritance
TimeSlotStyleSelector
Namespace: C1.WPF.Schedule
Assembly: C1.WPF.Schedule.4.6.2.dll
Syntax
public class TimeSlotStyleSelector : 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}" />

Constructors

Name Description
TimeSlotStyleSelector()

Methods

Name Description
SelectStyle(object, DependencyObject)