# C1.WPF.C1ContextMenuService

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_C1ContextMenuService" data-uid="C1.WPF.C1ContextMenuService" class="text-break">C1ContextMenuService Class
</h1>
  <div class="markdown level0 summary"><p>Represents a service that provides static methods to display a context menu.</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"><span class="xref">C1ContextMenuService</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.html">C1.WPF</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.4.6.2.dll</h6>
  <h5 id="C1_WPF_C1ContextMenuService_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static class C1ContextMenuService</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Module C1ContextMenuService</code></pre>
  </div>
  <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_WPF_C1ContextMenuService_ContextMenuProperty" data-uid="C1.WPF.C1ContextMenuService.ContextMenuProperty">
          <a class="xref" href="C1.WPF.C1ContextMenuService.ContextMenuProperty.html">ContextMenuProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the ContextMenu dependency property.</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_WPF_C1ContextMenuService_GetContextMenu_System_Windows_DependencyObject_" data-uid="C1.WPF.C1ContextMenuService.GetContextMenu(System.Windows.DependencyObject)">
          <a class="xref" href="C1.WPF.C1ContextMenuService.GetContextMenu.html#C1_WPF_C1ContextMenuService_GetContextMenu_System_Windows_DependencyObject_">GetContextMenu(DependencyObject)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the context menu for a control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_C1ContextMenuService_SetContextMenu_System_Windows_DependencyObject_C1_WPF_IC1ContextMenu_" data-uid="C1.WPF.C1ContextMenuService.SetContextMenu(System.Windows.DependencyObject,C1.WPF.IC1ContextMenu)">
          <a class="xref" href="C1.WPF.C1ContextMenuService.SetContextMenu.html#C1_WPF_C1ContextMenuService_SetContextMenu_System_Windows_DependencyObject_C1_WPF_IC1ContextMenu_">SetContextMenu(DependencyObject, IC1ContextMenu)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the context menu for a control.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
