# C1.WinUI.Menu.C1ContextMenu

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WinUI_Menu_C1ContextMenu" data-uid="C1.WinUI.Menu.C1ContextMenu" class="text-break">C1ContextMenu Class
</h1>
  <div class="markdown level0 summary"><p>The C1ContextMenu control represents a menu that can be displayed when the user clicks the right mouse button over a 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="../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">C1ContextMenu</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_C1ContextMenu_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class C1ContextMenu : C1MenuList, IDisposable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class C1ContextMenu
    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_C1ContextMenu__ctor" data-uid="C1.WinUI.Menu.C1ContextMenu.#ctor">
          <a class="xref" href="C1.WinUI.Menu.C1ContextMenu.-ctor.html#C1_WinUI_Menu_C1ContextMenu__ctor">C1ContextMenu()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.WinUI.Menu.C1ContextMenu.html">C1ContextMenu</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_WinUI_Menu_C1ContextMenu_PopupStyleProperty" data-uid="C1.WinUI.Menu.C1ContextMenu.PopupStyleProperty">
          <a class="xref" href="C1.WinUI.Menu.C1ContextMenu.PopupStyleProperty.html">PopupStyleProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WinUI.Menu.C1ContextMenu.PopupStyle.html#C1_WinUI_Menu_C1ContextMenu_PopupStyle">PopupStyle</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_WinUI_Menu_C1ContextMenu_IsOpen" data-uid="C1.WinUI.Menu.C1ContextMenu.IsOpen">
          <a class="xref" href="C1.WinUI.Menu.C1ContextMenu.IsOpen.html#C1_WinUI_Menu_C1ContextMenu_IsOpen">IsOpen</a>
        </td>
        <td class="markdown level1 summary"><p>Gets whether the menu is open.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WinUI_Menu_C1ContextMenu_Offset" data-uid="C1.WinUI.Menu.C1ContextMenu.Offset">
          <a class="xref" href="C1.WinUI.Menu.C1ContextMenu.Offset.html#C1_WinUI_Menu_C1ContextMenu_Offset">Offset</a>
        </td>
        <td class="markdown level1 summary"><p>Gets</p>
</td>
      </tr>
      <tr>
        <td id="C1_WinUI_Menu_C1ContextMenu_PlacementTarget" data-uid="C1.WinUI.Menu.C1ContextMenu.PlacementTarget">
          <a class="xref" href="C1.WinUI.Menu.C1ContextMenu.PlacementTarget.html#C1_WinUI_Menu_C1ContextMenu_PlacementTarget">PlacementTarget</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the element to which the displayed menu is relative to.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WinUI_Menu_C1ContextMenu_PopupStyle" data-uid="C1.WinUI.Menu.C1ContextMenu.PopupStyle">
          <a class="xref" href="C1.WinUI.Menu.C1ContextMenu.PopupStyle.html#C1_WinUI_Menu_C1ContextMenu_PopupStyle">PopupStyle</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the style of the popup.</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_WinUI_Menu_C1ContextMenu_Dispose_System_Boolean_" data-uid="C1.WinUI.Menu.C1ContextMenu.Dispose(System.Boolean)">
          <a class="xref" href="C1.WinUI.Menu.C1ContextMenu.Dispose.html#C1_WinUI_Menu_C1ContextMenu_Dispose_System_Boolean_">Dispose(bool)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WinUI_Menu_C1ContextMenu_OnApplyTemplate" data-uid="C1.WinUI.Menu.C1ContextMenu.OnApplyTemplate">
          <a class="xref" href="C1.WinUI.Menu.C1ContextMenu.OnApplyTemplate.html#C1_WinUI_Menu_C1ContextMenu_OnApplyTemplate">OnApplyTemplate()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WinUI_Menu_C1ContextMenu_OnClosed_System_EventArgs_" data-uid="C1.WinUI.Menu.C1ContextMenu.OnClosed(System.EventArgs)">
          <a class="xref" href="C1.WinUI.Menu.C1ContextMenu.OnClosed.html#C1_WinUI_Menu_C1ContextMenu_OnClosed_System_EventArgs_">OnClosed(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <span class="xref">Closed</span> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WinUI_Menu_C1ContextMenu_OnClosing_System_ComponentModel_CancelEventArgs_" data-uid="C1.WinUI.Menu.C1ContextMenu.OnClosing(System.ComponentModel.CancelEventArgs)">
          <a class="xref" href="C1.WinUI.Menu.C1ContextMenu.OnClosing.html#C1_WinUI_Menu_C1ContextMenu_OnClosing_System_ComponentModel_CancelEventArgs_">OnClosing(CancelEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <span class="xref">Closing</span> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WinUI_Menu_C1ContextMenu_OnOpened_System_EventArgs_" data-uid="C1.WinUI.Menu.C1ContextMenu.OnOpened(System.EventArgs)">
          <a class="xref" href="C1.WinUI.Menu.C1ContextMenu.OnOpened.html#C1_WinUI_Menu_C1ContextMenu_OnOpened_System_EventArgs_">OnOpened(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <span class="xref">Opened</span> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WinUI_Menu_C1ContextMenu_OnOpening_System_ComponentModel_CancelEventArgs_" data-uid="C1.WinUI.Menu.C1ContextMenu.OnOpening(System.ComponentModel.CancelEventArgs)">
          <a class="xref" href="C1.WinUI.Menu.C1ContextMenu.OnOpening.html#C1_WinUI_Menu_C1ContextMenu_OnOpening_System_ComponentModel_CancelEventArgs_">OnOpening(CancelEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <span class="xref">Opening</span> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WinUI_Menu_C1ContextMenu_Show_Microsoft_UI_Xaml_FrameworkElement_System_Nullable_Windows_Foundation_Point__" data-uid="C1.WinUI.Menu.C1ContextMenu.Show(Microsoft.UI.Xaml.FrameworkElement,System.Nullable{Windows.Foundation.Point})">
          <a class="xref" href="C1.WinUI.Menu.C1ContextMenu.Show.html#C1_WinUI_Menu_C1ContextMenu_Show_Microsoft_UI_Xaml_FrameworkElement_System_Nullable_Windows_Foundation_Point__">Show(FrameworkElement, Point?)</a>
        </td>
        <td class="markdown level1 summary"><p>Displays the context menu at the specified position.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="events">Events
</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_C1ContextMenu_Closed" data-uid="C1.WinUI.Menu.C1ContextMenu.Closed">
          <a class="xref" href="C1.WinUI.Menu.C1ContextMenu.Closed.html">Closed</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the <a class="xref" href="C1.WinUI.Menu.C1ContextMenu.html">C1ContextMenu</a> closes.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WinUI_Menu_C1ContextMenu_Closing" data-uid="C1.WinUI.Menu.C1ContextMenu.Closing">
          <a class="xref" href="C1.WinUI.Menu.C1ContextMenu.Closing.html">Closing</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the <a class="xref" href="C1.WinUI.Menu.C1ContextMenu.html">C1ContextMenu</a> is closing.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WinUI_Menu_C1ContextMenu_Opened" data-uid="C1.WinUI.Menu.C1ContextMenu.Opened">
          <a class="xref" href="C1.WinUI.Menu.C1ContextMenu.Opened.html">Opened</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the <a class="xref" href="C1.WinUI.Menu.C1ContextMenu.html">C1ContextMenu</a> opens.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WinUI_Menu_C1ContextMenu_Opening" data-uid="C1.WinUI.Menu.C1ContextMenu.Opening">
          <a class="xref" href="C1.WinUI.Menu.C1ContextMenu.Opening.html">Opening</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the <a class="xref" href="C1.WinUI.Menu.C1ContextMenu.html">C1ContextMenu</a> is opening.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
