# GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalendarDayButtonStyleSelector

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_CalendarDayButtonStyleSelector" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalendarDayButtonStyleSelector" class="text-break">CalendarDayButtonStyleSelector Class
</h1>
  <div class="markdown level0 summary"><p>Represents the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalendarDayButtonStyleSelector.html">CalendarDayButtonStyleSelector</a> class, which allow user to set simple style for <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalendarDayButton.html">CalendarDayButton</a> according to some conditions.</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"><a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.StyleSelector-1.html">StyleSelector</a>&lt;<a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalendarDayButton.html">CalendarDayButton</a>&gt;</div>
    <div class="level2"><span class="xref">CalendarDayButtonStyleSelector</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.html">GrapeCity.Wpf.SpreadSheet.CellType.Editors</a></h6>
  <h6><strong>Assembly</strong>: GrapeCity.Wpf.SpreadSheet.CellType.dll</h6>
  <h5 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_CalendarDayButtonStyleSelector_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class CalendarDayButtonStyleSelector : StyleSelector&lt;CalendarDayButton&gt;</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class CalendarDayButtonStyleSelector
    Inherits StyleSelector(Of CalendarDayButton)</code></pre>
  </div>
  <h5 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_CalendarDayButtonStyleSelector_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p><a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalendarDayButtonStyleSelector.html">CalendarDayButtonStyleSelector</a> is a simple implementation from bass class, to provide simple way to change appearance(some properties) of <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalendarDayButton.html">CalendarDayButton</a> according to some pre-defined conditions.
If this interface can't satisfy user's complex requirement, user is able to use template customization to instead.</p>
</div>
  <h5 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_CalendarDayButtonStyleSelector_examples"><strong>Examples</strong></h5>
  <p>The following xaml demonstrates how to change appearance of <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.WeekTitle.html">WeekTitle</a> and <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalendarDayButton.html">CalendarDayButton</a>
through <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.WeekTitleStyleSelector.html">WeekTitleStyleSelector</a> and <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalendarDayButtonStyleSelector.html">CalendarDayButtonStyleSelector</a> in xaml.</p>

  <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="GrapeCity_Wpf_SpreadSheet_CellType_Editors_CalendarDayButtonStyleSelector__ctor" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalendarDayButtonStyleSelector.#ctor">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalendarDayButtonStyleSelector.-ctor.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_CalendarDayButtonStyleSelector__ctor">CalendarDayButtonStyleSelector()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalendarDayButtonStyleSelector.html">CalendarDayButtonStyleSelector</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_CalendarDayButtonStyleSelector_Conditions" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalendarDayButtonStyleSelector.Conditions">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalendarDayButtonStyleSelector.Conditions.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_CalendarDayButtonStyleSelector_Conditions">Conditions</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a collection of <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.SelectorCondition.html">SelectorCondition</a> objects.
A new <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.style">Style</a> is selected when all the conditions are checked,
and the setters of the conditions which are met, will be applied to the selected <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.style">Style</a>.</p>
</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="GrapeCity_Wpf_SpreadSheet_CellType_Editors_CalendarDayButtonStyleSelector_SelectStyle_GrapeCity_Wpf_SpreadSheet_CellType_Editors_CalendarDayButton_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalendarDayButtonStyleSelector.SelectStyle(GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalendarDayButton)">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalendarDayButtonStyleSelector.SelectStyle.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_CalendarDayButtonStyleSelector_SelectStyle_GrapeCity_Wpf_SpreadSheet_CellType_Editors_CalendarDayButton_">SelectStyle(CalendarDayButton)</a>
        </td>
        <td class="markdown level1 summary"><p>Selects the style according the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalendarDayButtonStyleSelector.Conditions.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_CalendarDayButtonStyleSelector_Conditions">Conditions</a>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
