# C1.WPF.Schedule.TimeSlotTemplateSelector.SelectTemplate

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_Schedule_TimeSlotTemplateSelector_SelectTemplate_" data-uid="C1.WPF.Schedule.TimeSlotTemplateSelector.SelectTemplate*">SelectTemplate Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_Schedule_TimeSlotTemplateSelector_SelectTemplate_" data-uid="C1.WPF.Schedule.TimeSlotTemplateSelector.SelectTemplate*"></a>
<h4 id="C1_WPF_Schedule_TimeSlotTemplateSelector_SelectTemplate_System_Object_System_Windows_DependencyObject_" data-uid="C1.WPF.Schedule.TimeSlotTemplateSelector.SelectTemplate(System.Object,System.Windows.DependencyObject)">SelectTemplate(object, DependencyObject)</h4>
<div class="markdown level1 summary"><p>Returns the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.datatemplate">DataTemplate</a> object for the specified group if it is found in resources.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public override DataTemplate SelectTemplate(object item, DependencyObject container)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overrides Function SelectTemplate(item As Object, container As DependencyObject) As DataTemplate</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="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">item</span></td>
      <td><p>The data object for which to select the template.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">DependencyObject</span></td>
      <td><span class="parametername">container</span></td>
      <td><p>The data-bound object.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.datatemplate">DataTemplate</a></td>
      <td><p>Returns a DataTemplate or a null reference (Nothing in Visual Basic).
The default value is a null reference (Nothing in Visual Basic).</p>
</td>
    </tr>
  </tbody>
</table>
</div>
