# C1.WPF.Schedule.C1Calendar.ShowWeekNumbers

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_Schedule_C1Calendar_ShowWeekNumbers_" data-uid="C1.WPF.Schedule.C1Calendar.ShowWeekNumbers*">ShowWeekNumbers Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_Schedule_C1Calendar_ShowWeekNumbers_" data-uid="C1.WPF.Schedule.C1Calendar.ShowWeekNumbers*"></a>
<h4 id="C1_WPF_Schedule_C1Calendar_ShowWeekNumbers" data-uid="C1.WPF.Schedule.C1Calendar.ShowWeekNumbers">ShowWeekNumbers</h4>
<div class="markdown level1 summary"><p>Gets or sets a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a> value indicating whether the control displays week numbers (1-52).
This is a dependency property. The default is false.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool ShowWeekNumbers { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property ShowWeekNumbers As Boolean</code></pre>
</div>
<h5 id="C1_WPF_Schedule_C1Calendar_ShowWeekNumbers_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The actual appearance of week numbers is determined in the <a class="xref" href="C1.WPF.Schedule.C1CalendarItem.html">C1CalendarItem</a> control template
with the <a class="xref" href="C1.WPF.Schedule.WeekNumbersPresenter.html">WeekNumbersPresenter</a> control instance.
To show week numbers in the custom control template, place the <a class="xref" href="C1.WPF.Schedule.WeekNumbersPresenter.html">WeekNumbersPresenter</a> control
into template visual tree and bind it's Visibility property to the <a class="xref" href="C1.WPF.Schedule.C1Calendar.ShowWeekNumbers.html#C1_WPF_Schedule_C1Calendar_ShowWeekNumbers">ShowWeekNumbers</a> property.</p>
</div>
</div>
