# C1.WPF.Schedule.DayOfMonthValidator

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_Schedule_DayOfMonthValidator" data-uid="C1.WPF.Schedule.DayOfMonthValidator" class="text-break">DayOfMonthValidator Class
</h1>
  <div class="markdown level0 summary"><p>The <a class="xref" href="C1.WPF.Schedule.DayOfMonthValidator.html">DayOfMonthValidator</a> is a static class which can be used in xaml
to specify month number and culture for validation rule via binding:
&lt;TextBox c1sched:DayOfMonthValidator.Month=''{Binding Path=MonthOfYear}''/&gt;</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">DayOfMonthValidator</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_DayOfMonthValidator_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static class DayOfMonthValidator</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Module DayOfMonthValidator</code></pre>
  </div>
  <h3 id="fields">Fields
</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_DayOfMonthValidator_MonthProperty" data-uid="C1.WPF.Schedule.DayOfMonthValidator.MonthProperty">
          <a class="xref" href="C1.WPF.Schedule.DayOfMonthValidator.MonthProperty.html">MonthProperty</a>
        </td>
        <td class="markdown level1 summary"><p>The Month attached property can be used to specify which month is used
for day of month validation.</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="C1_WPF_Schedule_DayOfMonthValidator_GetMonth_System_Windows_DependencyObject_" data-uid="C1.WPF.Schedule.DayOfMonthValidator.GetMonth(System.Windows.DependencyObject)">
          <a class="xref" href="C1.WPF.Schedule.DayOfMonthValidator.GetMonth.html#C1_WPF_Schedule_DayOfMonthValidator_GetMonth_System_Windows_DependencyObject_">GetMonth(DependencyObject)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the value of the Month attached property for a given DependencyObject.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_DayOfMonthValidator_SetMonth_System_Windows_DependencyObject_System_Int32_" data-uid="C1.WPF.Schedule.DayOfMonthValidator.SetMonth(System.Windows.DependencyObject,System.Int32)">
          <a class="xref" href="C1.WPF.Schedule.DayOfMonthValidator.SetMonth.html#C1_WPF_Schedule_DayOfMonthValidator_SetMonth_System_Windows_DependencyObject_System_Int32_">SetMonth(DependencyObject, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the value of the Month attached property for a given DependencyObject.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
