This class provides a way to apply day group styles for ordinal/current days.
Namespace:
C1.Silverlight.ScheduleAssembly: C1.Silverlight.Schedule (in C1.Silverlight.Schedule.dll)
Syntax
C# |
---|
public class DayIntervalStyleSelector : C1StyleSelector |
Visual Basic |
---|
Public Class DayIntervalStyleSelector _ Inherits C1StyleSelector |
Remarks
For the sample of using look at OneDayStyleBase in generic.xaml.
Create an instance of this class:
<local:DayIntervalStyleSelector x:Key="DayIntervalStyleSelector"/>
-
Define two group styles:
- with the key "C1Scheduler_Day_Style" for ordinal days;
- with the key "C1Scheduler_Today_Style" for the current day.
Specify style selector in the group definition:
<GroupStyle ContainerStyleSelector="{StaticResource DayIntervalStyleSelector}">