# C1.WPF.Schedule.DayIntervalStyleSelector

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_Schedule_DayIntervalStyleSelector" data-uid="C1.WPF.Schedule.DayIntervalStyleSelector" class="text-break">DayIntervalStyleSelector Class
</h1>
  <div class="markdown level0 summary"><p>This class provides a way to apply day group styles for ordinal/current days.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">DayIntervalStyleSelector</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.Schedule.html">C1.WPF.Schedule</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.Schedule.4.6.2.dll</h6>
  <h5 id="C1_WPF_Schedule_DayIntervalStyleSelector_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class DayIntervalStyleSelector : C1StyleSelector</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class DayIntervalStyleSelector
    Inherits C1StyleSelector</code></pre>
  </div>
  <h5 id="C1_WPF_Schedule_DayIntervalStyleSelector_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>For the sample of using look at OneDayStyleBase in generic.xaml.
<ol><li><p>Create an instance of this class:</p><p> &lt;local:DayIntervalStyleSelector x:Key=&quot;DayIntervalStyleSelector&quot;/&gt;</p></li><li>
Define two group styles:
<ul><li>
with the key &quot;C1Scheduler_Day_Style&quot; for ordinal days;
</li><li>
with the key &quot;C1Scheduler_Today_Style&quot; for the current day.<br>
</li></ul></li><li><p>Specify style selector in the group definition:</p><p> &lt;GroupStyle ContainerStyleSelector=&quot;{StaticResource DayIntervalStyleSelector}&quot;&gt;</p></li></ol>
</div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_Schedule_DayIntervalStyleSelector__ctor" data-uid="C1.WPF.Schedule.DayIntervalStyleSelector.#ctor">
          <a class="xref" href="C1.WPF.Schedule.DayIntervalStyleSelector.-ctor.html#C1_WPF_Schedule_DayIntervalStyleSelector__ctor">DayIntervalStyleSelector()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_Schedule_DayIntervalStyleSelector_SelectStyle_System_Object_System_Windows_DependencyObject_" data-uid="C1.WPF.Schedule.DayIntervalStyleSelector.SelectStyle(System.Object,System.Windows.DependencyObject)">
          <a class="xref" href="C1.WPF.Schedule.DayIntervalStyleSelector.SelectStyle.html#C1_WPF_Schedule_DayIntervalStyleSelector_SelectStyle_System_Object_System_Windows_DependencyObject_">SelectStyle(object, DependencyObject)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>

</div>
