# C1.WinUI.Menu.C1Menu

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WinUI_Menu_C1Menu" data-uid="C1.WinUI.Menu.C1Menu" class="text-break">C1Menu Class
</h1>
  <div class="markdown level0 summary"><p>Menu control supporting nested items hierarchies.</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="../C1.WinUI.Core/C1.WinUI.Core.C1ItemsControl.html">C1ItemsControl</a></div>
    <div class="level2"><a class="xref" href="../C1.WinUI.Core/C1.WinUI.Core.C1HierarchicalPresenter.html">C1HierarchicalPresenter</a></div>
    <div class="level3"><a class="xref" href="C1.WinUI.Menu.C1MenuList.html">C1MenuList</a></div>
    <div class="level4"><span class="xref">C1Menu</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WinUI.Menu.html">C1.WinUI.Menu</a></h6>
  <h6><strong>Assembly</strong>: C1.WinUI.Menu.dll</h6>
  <h5 id="C1_WinUI_Menu_C1Menu_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class C1Menu : C1MenuList, IDisposable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class C1Menu
    Inherits C1MenuList
    Implements IDisposable</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_WinUI_Menu_C1Menu__ctor" data-uid="C1.WinUI.Menu.C1Menu.#ctor">
          <a class="xref" href="C1.WinUI.Menu.C1Menu.-ctor.html#C1_WinUI_Menu_C1Menu__ctor">C1Menu()</a>
        </td>
        <td class="markdown level1 summary"></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_WinUI_Menu_C1Menu_GetPreferedLocations" data-uid="C1.WinUI.Menu.C1Menu.GetPreferedLocations">
          <a class="xref" href="C1.WinUI.Menu.C1Menu.GetPreferedLocations.html#C1_WinUI_Menu_C1Menu_GetPreferedLocations">GetPreferedLocations()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a list of the preferred locations for the menu-items popup's content.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WinUI_Menu_C1Menu_PrepareContainerForItemOverride_Microsoft_UI_Xaml_DependencyObject_System_Object_" data-uid="C1.WinUI.Menu.C1Menu.PrepareContainerForItemOverride(Microsoft.UI.Xaml.DependencyObject,System.Object)">
          <a class="xref" href="C1.WinUI.Menu.C1Menu.PrepareContainerForItemOverride.html#C1_WinUI_Menu_C1Menu_PrepareContainerForItemOverride_Microsoft_UI_Xaml_DependencyObject_System_Object_">PrepareContainerForItemOverride(DependencyObject, object)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>

</div>
