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

In This Topic
    TimeSlotStyleSelector Class
    In This Topic
    This class provides a way to apply time slot styles for working/free hours in DayView/WorkWeekView modes.
    Object Model
    TimeSlotStyleSelector 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 TimeSlotStyleSelector 
       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 TimeSlotStyleSelector : C1.Xaml.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.
    Inheritance Hierarchy

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

    See Also