title: Blazor: How to create reusable render fragment?
body: <p>I have a following markup that I use often:</p>
  <pre><code>&lt;SfDropDownList DataSource=&quot;@Model.Customers&quot; TItem=&quot;Customer&quot; TValue=&quot;Customer&quot;&gt;
      &lt;DropDownListTemplates TItem=&quot;Customer&quot;&gt;
          &lt;ItemTemplate Context=&quot;customer&quot;&gt;
              &lt;span&gt;@customer.Name&lt;/span&gt;&lt;span class=&quot;float-right&quot;&gt;@customer.Site&lt;/span&gt;
          &lt;/ItemTemplate&gt;
      &lt;/DropDownListTemplates&gt;
  &lt;/SfDropDownList&gt;
  </code></pre>
  <p><strong>How do I reuse DropDownListTemplates with the same parameters in multiple components?</strong></p>
  <p>I was thinking, that I create I create a custom class inherited from DropDownListTemplates:</p>
  <pre><code>@inherits DropDownListTemplates&lt;Customer&gt;
  @code { 
      override void OnAfterRender(bool firstRender)
      {
          // this.ItemTemplate = ??
          base.OnAfterRender(firstRender);
      }
  }
  </code></pre>
  <p>but how do I set ItemTemplate which is a RenderFragment parameter in the base class?</p>
  <p>I want to avoid wrapping SfDropDownList to a custom component</p>