Scheduler for UWP | ComponentOne
C1.Xaml.Schedule Namespace / DayIntervalStyleSelector Class
Members

In This Topic
    DayIntervalStyleSelector Class
    In This Topic
    This class provides a way to apply day group styles for ordinal/current days.
    Object Model
    DayIntervalStyleSelector Class
    Syntax
    'Declaration
     
    
    <ThreadingAttribute(ThreadingModel.Both)>
    <ContractVersionAttribute(Windows.Foundation.UniversalApiContract, 65536)>
    <WebHostHiddenAttribute()>
    <ComposableAttribute(Windows.UI.Xaml.Controls.IStyleSelectorFactory, 
       CompositionType.Public, 
       65536, 
       "Windows.Foundation.UniversalApiContract")>
    <MarshalingBehaviorAttribute(MarshalingType.Agile)>
    Public Class DayIntervalStyleSelector 
       Inherits C1.Xaml.C1StyleSelector
    [Threading(ThreadingModel.Both)]
    [ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
    [WebHostHidden()]
    [Composable(Windows.UI.Xaml.Controls.IStyleSelectorFactory, 
       CompositionType.Public, 
       65536, 
       "Windows.Foundation.UniversalApiContract")]
    [MarshalingBehavior(MarshalingType.Agile)]
    public class DayIntervalStyleSelector : C1.Xaml.C1StyleSelector 
    Remarks
    For the sample of using look at OneDayStyleBase in generic.xaml.
    1. Create an instance of this class:

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

    2. Define two group styles:
      • with the key "C1Scheduler_Day_Style" for ordinal days;
      • with the key "C1Scheduler_Today_Style" for the current day.
    3. Specify style selector in the group definition:

      <GroupStyle ContainerStyleSelector="{StaticResource DayIntervalStyleSelector}">

    Inheritance Hierarchy

    System.Object
       Windows.UI.Xaml.Controls.StyleSelector
          C1.Xaml.C1StyleSelector
             C1.Xaml.Schedule.DayIntervalStyleSelector

    See Also