# C1.WPF.RichTextBox.Documents.C1List.MarkerTemplate

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_RichTextBox_Documents_C1List_MarkerTemplate_" data-uid="C1.WPF.RichTextBox.Documents.C1List.MarkerTemplate*">MarkerTemplate Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_RichTextBox_Documents_C1List_MarkerTemplate_" data-uid="C1.WPF.RichTextBox.Documents.C1List.MarkerTemplate*"></a>
<h4 id="C1_WPF_RichTextBox_Documents_C1List_MarkerTemplate" data-uid="C1.WPF.RichTextBox.Documents.C1List.MarkerTemplate">MarkerTemplate</h4>
<div class="markdown level1 summary"><p>Gets or sets a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.datatemplate">DataTemplate</a> used to draw the markers in the <a class="xref" href="C1.WPF.RichTextBox.Documents.C1List.html">C1List</a>.
If this property is set, <a class="xref" href="C1.WPF.RichTextBox.Documents.C1List.MarkerStyle.html#C1_WPF_RichTextBox_Documents_C1List_MarkerStyle">MarkerStyle</a> and <a class="xref" href="C1.WPF.RichTextBox.Documents.C1List.MarkerImage.html#C1_WPF_RichTextBox_Documents_C1List_MarkerImage">MarkerImage</a> are ignored.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public DataTemplate MarkerTemplate { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property MarkerTemplate As DataTemplate</code></pre>
</div>
<h5 id="C1_WPF_RichTextBox_Documents_C1List_MarkerTemplate_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>When the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.datatemplate">DataTemplate</a> is instanced, the DataContext is set to an object of type
<a class="xref" href="C1.WPF.RichTextBox.Documents.C1ListMarkerTemplateContext.html">C1ListMarkerTemplateContext</a>. This can be used in bindings inside the DataTemplate to
access the index and style properties of the list item.</p>
</div>
</div>
