# C1.WPF.Schedule.DayGroupStyleSelector

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_Schedule_DayGroupStyleSelector" data-uid="C1.WPF.Schedule.DayGroupStyleSelector" class="text-break">DayGroupStyleSelector Class
</h1>
  <div class="markdown level0 summary"><p>This class provides a way to apply day group styles in DayView/WorkWeekView modes.</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">DayGroupStyleSelector</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.dll</h6>
  <h5 id="C1_WPF_Schedule_DayGroupStyleSelector_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class DayGroupStyleSelector : C1StyleSelector</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class DayGroupStyleSelector
    Inherits C1StyleSelector</code></pre>
  </div>
  <h5 id="C1_WPF_Schedule_DayGroupStyleSelector_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>For the sample of using look at OneDayStyle in themes/SchedulerThemes/Office2007/Blue.xaml.
<ol><li>
<p>Create an instance of this class:</p>
<p> &lt;local:DayGroupStyleSelector x:Key=&quot;DayGroupStyleSelector&quot;/&gt;</p>
</li><li>
Define two group styles:
<ul><li>
with the key &quot;PART_C1Scheduler_Day_Style&quot; for ordinal day style;
</li><li>
with the key &quot;PART_C1Scheduler_Today_Style&quot; for the current day style.<br>
</li></ul>
</li><li>
<p>Specify style selector in the group definition:</p>
<p> &lt;GroupStyle ContainerStyleSelector=&quot;{StaticResource DayGroupStyleSelector}&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_DayGroupStyleSelector__ctor" data-uid="C1.WPF.Schedule.DayGroupStyleSelector.#ctor">
          <a class="xref" href="C1.WPF.Schedule.DayGroupStyleSelector.-ctor.html#C1_WPF_Schedule_DayGroupStyleSelector__ctor">DayGroupStyleSelector()</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_DayGroupStyleSelector_SelectStyle_System_Object_System_Windows_DependencyObject_" data-uid="C1.WPF.Schedule.DayGroupStyleSelector.SelectStyle(System.Object,System.Windows.DependencyObject)">
          <a class="xref" href="C1.WPF.Schedule.DayGroupStyleSelector.SelectStyle.html#C1_WPF_Schedule_DayGroupStyleSelector_SelectStyle_System_Object_System_Windows_DependencyObject_">SelectStyle(object, DependencyObject)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.style">Style</a> object for the specified group if it is found in resources.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
