# C1.WPF.Ribbon.C1DropDownTool

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_Ribbon_C1DropDownTool" data-uid="C1.WPF.Ribbon.C1DropDownTool" class="text-break">C1DropDownTool Class
</h1>
  <div class="markdown level0 summary"><p>This control represents a drop-down button, with a <a class="xref" href="C1.WPF.Ribbon.C1DropDownTool.Content.html#C1_WPF_Ribbon_C1DropDownTool_Content">Content</a> element.</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.WPF.Ribbon.C1Tool.html">C1Tool</a></div>
    <div class="level2"><span class="xref">C1DropDownTool</span></div>
      <div class="level3"><a class="xref" href="C1.WPF.Ribbon.C1MenuTool.html">C1MenuTool</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.Ribbon.html">C1.WPF.Ribbon</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.Ribbon.dll</h6>
  <h5 id="C1_WPF_Ribbon_C1DropDownTool_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[StyleTypedProperty(Property = &quot;PopupStyle&quot;, StyleTargetType = typeof(C1PopupBorder))]
[TemplatePart(Name = &quot;DropDown&quot;, Type = typeof(C1DropDownButton))]
public class C1DropDownTool : C1Tool</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;StyleTypedProperty(Property:=&quot;PopupStyle&quot;, StyleTargetType:=GetType(C1PopupBorder))&gt;
&lt;TemplatePart(Name:=&quot;DropDown&quot;, Type:=GetType(C1DropDownButton))&gt;
Public Class C1DropDownTool
    Inherits C1Tool</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_WPF_Ribbon_C1DropDownTool__ctor" data-uid="C1.WPF.Ribbon.C1DropDownTool.#ctor">
          <a class="xref" href="C1.WPF.Ribbon.C1DropDownTool.-ctor.html#C1_WPF_Ribbon_C1DropDownTool__ctor">C1DropDownTool()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.WPF.Ribbon.C1DropDownTool.html">C1DropDownTool</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_WPF_Ribbon_C1DropDownTool_ContentProperty" data-uid="C1.WPF.Ribbon.C1DropDownTool.ContentProperty">
          <a class="xref" href="C1.WPF.Ribbon.C1DropDownTool.ContentProperty.html">ContentProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Ribbon.C1DropDownTool.Content.html#C1_WPF_Ribbon_C1DropDownTool_Content">Content</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_C1DropDownTool_ContentTemplateProperty" data-uid="C1.WPF.Ribbon.C1DropDownTool.ContentTemplateProperty">
          <a class="xref" href="C1.WPF.Ribbon.C1DropDownTool.ContentTemplateProperty.html">ContentTemplateProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Ribbon.C1DropDownTool.ContentTemplate.html#C1_WPF_Ribbon_C1DropDownTool_ContentTemplate">ContentTemplate</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_C1DropDownTool_IsDropDownOpenProperty" data-uid="C1.WPF.Ribbon.C1DropDownTool.IsDropDownOpenProperty">
          <a class="xref" href="C1.WPF.Ribbon.C1DropDownTool.IsDropDownOpenProperty.html">IsDropDownOpenProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Ribbon.C1DropDownTool.IsDropDownOpen.html#C1_WPF_Ribbon_C1DropDownTool_IsDropDownOpen">IsDropDownOpen</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_C1DropDownTool_PopupStyleProperty" data-uid="C1.WPF.Ribbon.C1DropDownTool.PopupStyleProperty">
          <a class="xref" href="C1.WPF.Ribbon.C1DropDownTool.PopupStyleProperty.html">PopupStyleProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Ribbon.C1DropDownTool.PopupStyle.html#C1_WPF_Ribbon_C1DropDownTool_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_WPF_Ribbon_C1DropDownTool_Content" data-uid="C1.WPF.Ribbon.C1DropDownTool.Content">
          <a class="xref" href="C1.WPF.Ribbon.C1DropDownTool.Content.html#C1_WPF_Ribbon_C1DropDownTool_Content">Content</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the popup content.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_C1DropDownTool_ContentTemplate" data-uid="C1.WPF.Ribbon.C1DropDownTool.ContentTemplate">
          <a class="xref" href="C1.WPF.Ribbon.C1DropDownTool.ContentTemplate.html#C1_WPF_Ribbon_C1DropDownTool_ContentTemplate">ContentTemplate</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the DataTemplate used to create the popup content.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_C1DropDownTool_IsDropDownOpen" data-uid="C1.WPF.Ribbon.C1DropDownTool.IsDropDownOpen">
          <a class="xref" href="C1.WPF.Ribbon.C1DropDownTool.IsDropDownOpen.html#C1_WPF_Ribbon_C1DropDownTool_IsDropDownOpen">IsDropDownOpen</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the drop-down is opened.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_C1DropDownTool_PopupStyle" data-uid="C1.WPF.Ribbon.C1DropDownTool.PopupStyle">
          <a class="xref" href="C1.WPF.Ribbon.C1DropDownTool.PopupStyle.html#C1_WPF_Ribbon_C1DropDownTool_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_WPF_Ribbon_C1DropDownTool_Dispose_System_Boolean_" data-uid="C1.WPF.Ribbon.C1DropDownTool.Dispose(System.Boolean)">
          <a class="xref" href="C1.WPF.Ribbon.C1DropDownTool.Dispose.html#C1_WPF_Ribbon_C1DropDownTool_Dispose_System_Boolean_">Dispose(bool)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_C1DropDownTool_OnApplyTemplate" data-uid="C1.WPF.Ribbon.C1DropDownTool.OnApplyTemplate">
          <a class="xref" href="C1.WPF.Ribbon.C1DropDownTool.OnApplyTemplate.html#C1_WPF_Ribbon_C1DropDownTool_OnApplyTemplate">OnApplyTemplate()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_C1DropDownTool_OnKeyDown_System_Windows_Input_KeyEventArgs_" data-uid="C1.WPF.Ribbon.C1DropDownTool.OnKeyDown(System.Windows.Input.KeyEventArgs)">
          <a class="xref" href="C1.WPF.Ribbon.C1DropDownTool.OnKeyDown.html#C1_WPF_Ribbon_C1DropDownTool_OnKeyDown_System_Windows_Input_KeyEventArgs_">OnKeyDown(KeyEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Invoked on keyboard key down over C1DropDownTool.
This method overrides UIElement.OnKeyDown and will close the C1DropDownTool menu based on keyboard input.
This prevents focus from getting out of the dropdown if TAB or arrow keys are pressed.
This applies only when the dropdown is open.</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_WPF_Ribbon_C1DropDownTool_IsDropDownOpenChanged" data-uid="C1.WPF.Ribbon.C1DropDownTool.IsDropDownOpenChanged">
          <a class="xref" href="C1.WPF.Ribbon.C1DropDownTool.IsDropDownOpenChanged.html">IsDropDownOpenChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the drop-down is open or closed.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
