# C1.Blazor.Menu.MenuItemView

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Blazor_Menu_MenuItemView" data-uid="C1.Blazor.Menu.MenuItemView" class="text-break">MenuItemView Class
</h1>
  <div class="markdown level0 summary"><p>Implements a selectable item in a C1MenuList control.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.components.componentbase">ComponentBase</a></div>
    <div class="level2"><a class="xref" href="../C1.Blazor.Core/C1.Blazor.Core.C1View.html">C1View</a></div>
    <div class="level3"><span class="xref">MenuItemView</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.components.icomponent">IComponent</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.components.ihandleafterrender">IHandleAfterRender</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.components.ihandleevent">IHandleEvent</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
    <div><a class="xref" href="../C1.Blazor.Core/C1.Blazor.Core.IDependencyObject.html">IDependencyObject</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Blazor.Menu.html">C1.Blazor.Menu</a></h6>
  <h6><strong>Assembly</strong>: C1.Blazor.Menu.dll</h6>
  <h5 id="C1_Blazor_Menu_MenuItemView_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class MenuItemView : C1View, IComponent, IHandleAfterRender, IHandleEvent, IDisposable, IDependencyObject</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class MenuItemView
    Inherits C1View
    Implements IComponent, IHandleAfterRender, IHandleEvent, IDisposable, IDependencyObject</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Blazor_Menu_MenuItemView__ctor" data-uid="C1.Blazor.Menu.MenuItemView.#ctor">
          <a class="xref" href="C1.Blazor.Menu.MenuItemView.-ctor.html#C1_Blazor_Menu_MenuItemView__ctor">MenuItemView()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Blazor.Menu.MenuItemView.html">MenuItemView</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Blazor_Menu_MenuItemView_ChildContentProperty" data-uid="C1.Blazor.Menu.MenuItemView.ChildContentProperty">
          <a class="xref" href="C1.Blazor.Menu.MenuItemView.ChildContentProperty.html">ChildContentProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.Blazor.Menu.MenuItemView.ChildContent.html#C1_Blazor_Menu_MenuItemView_ChildContent">ChildContent</a> dependency property.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Blazor_Menu_MenuItemView_ChildContent" data-uid="C1.Blazor.Menu.MenuItemView.ChildContent">
          <a class="xref" href="C1.Blazor.Menu.MenuItemView.ChildContent.html#C1_Blazor_Menu_MenuItemView_ChildContent">ChildContent</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the content of the scroll viewer.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Blazor_Menu_MenuItemView_Header" data-uid="C1.Blazor.Menu.MenuItemView.Header">
          <a class="xref" href="C1.Blazor.Menu.MenuItemView.Header.html#C1_Blazor_Menu_MenuItemView_Header">Header</a>
        </td>
        <td class="markdown level1 summary"><p>gets or sets the header.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Blazor_Menu_MenuItemView_HeaderTemplate" data-uid="C1.Blazor.Menu.MenuItemView.HeaderTemplate">
          <a class="xref" href="C1.Blazor.Menu.MenuItemView.HeaderTemplate.html#C1_Blazor_Menu_MenuItemView_HeaderTemplate">HeaderTemplate</a>
        </td>
        <td class="markdown level1 summary"><p>Get or Set custom content like Input, Group Checkbox...</p>
</td>
      </tr>
      <tr>
        <td id="C1_Blazor_Menu_MenuItemView_ItemTemplate" data-uid="C1.Blazor.Menu.MenuItemView.ItemTemplate">
          <a class="xref" href="C1.Blazor.Menu.MenuItemView.ItemTemplate.html#C1_Blazor_Menu_MenuItemView_ItemTemplate">ItemTemplate</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.components.renderfragment">RenderFragment</a> used to display the item.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Blazor_Menu_MenuItemView_MenuItem" data-uid="C1.Blazor.Menu.MenuItemView.MenuItem">
          <a class="xref" href="C1.Blazor.Menu.MenuItemView.MenuItem.html#C1_Blazor_Menu_MenuItemView_MenuItem">MenuItem</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the menu item associated to this view.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Blazor_Menu_MenuItemView_BuildRenderTree_Microsoft_AspNetCore_Components_Rendering_RenderTreeBuilder_" data-uid="C1.Blazor.Menu.MenuItemView.BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder)">
          <a class="xref" href="C1.Blazor.Menu.MenuItemView.BuildRenderTree.html#C1_Blazor_Menu_MenuItemView_BuildRenderTree_Microsoft_AspNetCore_Components_Rendering_RenderTreeBuilder_">BuildRenderTree(RenderTreeBuilder)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Blazor_Menu_MenuItemView_Dispose_System_Boolean_" data-uid="C1.Blazor.Menu.MenuItemView.Dispose(System.Boolean)">
          <a class="xref" href="C1.Blazor.Menu.MenuItemView.Dispose.html#C1_Blazor_Menu_MenuItemView_Dispose_System_Boolean_">Dispose(bool)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Blazor_Menu_MenuItemView_InitializeAsync" data-uid="C1.Blazor.Menu.MenuItemView.InitializeAsync">
          <a class="xref" href="C1.Blazor.Menu.MenuItemView.InitializeAsync.html#C1_Blazor_Menu_MenuItemView_InitializeAsync">InitializeAsync()</a>
        </td>
        <td class="markdown level1 summary"><p>This method is called when the component is initialized.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Blazor_Menu_MenuItemView_OnAfterRender_System_Boolean_" data-uid="C1.Blazor.Menu.MenuItemView.OnAfterRender(System.Boolean)">
          <a class="xref" href="C1.Blazor.Menu.MenuItemView.OnAfterRender.html#C1_Blazor_Menu_MenuItemView_OnAfterRender_System_Boolean_">OnAfterRender(bool)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>

</div>
