# C1.WinUI.Calendar.CalendarAdapter.PrepareSlot

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WinUI_Calendar_CalendarAdapter_PrepareSlot_" data-uid="C1.WinUI.Calendar.CalendarAdapter.PrepareSlot*">PrepareSlot Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WinUI_Calendar_CalendarAdapter_PrepareSlot_" data-uid="C1.WinUI.Calendar.CalendarAdapter.PrepareSlot*"></a>
<h4 id="C1_WinUI_Calendar_CalendarAdapter_PrepareSlot_C1_WinUI_Calendar_CalendarSlotPresenter_C1_WinUI_Calendar_CalendarSlotInfo_" data-uid="C1.WinUI.Calendar.CalendarAdapter.PrepareSlot(C1.WinUI.Calendar.CalendarSlotPresenter,C1.WinUI.Calendar.CalendarSlotInfo)">PrepareSlot(CalendarSlotPresenter, CalendarSlotInfo)</h4>
<div class="markdown level1 summary"><p>Prepares a slot to be displayed. Typically used to set the style of the slot.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual void PrepareSlot(CalendarSlotPresenter slot, CalendarSlotInfo slotInfo)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Sub PrepareSlot(slot As CalendarSlotPresenter, slotInfo As CalendarSlotInfo)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.WinUI.Calendar.CalendarSlotPresenter.html">CalendarSlotPresenter</a></td>
      <td><span class="parametername">slot</span></td>
      <td><p>The slot presenter.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.WinUI.Calendar.CalendarSlotInfo.html">CalendarSlotInfo</a></td>
      <td><span class="parametername">slotInfo</span></td>
      <td><p>The info about the slot.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_WinUI_Calendar_CalendarAdapter_PrepareSlot_C1_WinUI_Calendar_CalendarSlotPresenter_C1_WinUI_Calendar_CalendarSlotInfo__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>If some particular property is set for one slot it needs to be set for all of them since the recycling algorithm will reuse the presenters.</p>
</div>
</div>
