Scheduler for WPF
TimeSlotTemplateSelector クラス
メンバ 

C1.WPF.Schedule アセンブリ > C1.WPF.Schedule 名前空間 : TimeSlotTemplateSelector クラス
This class provides a way to choose a DataTemplate for the VisualInterval object representing the single time slot in DayView/WorkWeekView modes.
オブジェクト モデル
TimeSlotTemplateSelector クラス
シンタックス
'宣言
 
Public Class TimeSlotTemplateSelector 
   Inherits C1.WPF.Core.C1DataTemplateSelector
public class TimeSlotTemplateSelector : C1.WPF.Core.C1DataTemplateSelector 
解説
For the sample of using look at OneDayStyleBase in generic.xaml.
  1. Create an instance of this class:

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

  2. Define two DataTemplates:
    • with the key "PART_C1Scheduler_FreeSlot_Template" for free time;
    • with the key "PART_C1Scheduler_WorkSlot_Template" for working time.
  3. Specify ItemsControl.ItemTemplateSelector for the C1SchedulerPresenter object:

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

Note, that if you use this method for choosing VisualInterval DataTemplate, you shouldn't set VisualIntervalTemplate property.
継承階層

System.Object
   System.Windows.Controls.DataTemplateSelector
      C1.WPF.Core.C1DataTemplateSelector
         C1.WPF.Schedule.TimeSlotTemplateSelector

参照

TimeSlotTemplateSelector メンバ
C1.WPF.Schedule 名前空間