This class provides a way to apply day group styles in DayView/WorkWeekView modes.
Namespace:
C1.WPF.C1ScheduleAssembly: C1.WPF.C1Schedule (in C1.WPF.C1Schedule.dll)
Syntax
C# |
---|
public class DayGroupStyleSelector : StyleSelector |
Visual Basic (Declaration) |
---|
Public Class DayGroupStyleSelector _ Inherits StyleSelector |
Remarks
For the sample of using look at OneDayStyle in themes/SchedulerThemes/Office2007/Blue.xaml.
Create an instance of this class:
<local:DayGroupStyleSelector x:Key="DayGroupStyleSelector"/>
-
Define two group styles:
- with the key "PART_C1Scheduler_Day_Style" for ordinal day style;
- with the key "PART_C1Scheduler_Today_Style" for the current day style.
Specify style selector in the group definition:
<GroupStyle ContainerStyleSelector="{StaticResource DayGroupStyleSelector}"/>
Inheritance Hierarchy
System..::..Object
System.Windows.Controls..::..StyleSelector
C1.WPF.C1Schedule..::..DayGroupStyleSelector
System.Windows.Controls..::..StyleSelector
C1.WPF.C1Schedule..::..DayGroupStyleSelector