# GrapeCity.Wpf.SpreadSheet.CellType.Editors.DropDownButton

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_DropDownButton" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DropDownButton" class="text-break">DropDownButton Class
</h1>
  <div class="markdown level0 summary"><p>Represents a GrapeCity.Windows.InputMan.Primitives.DropDownButton handling mouse click to open the drop down window of the edit controls.</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/system.windows.media.visual">Visual</a></div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.uielement">UIElement</a></div>
    <div class="level3"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.frameworkelement">FrameworkElement</a></div>
    <div class="level4"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.control">Control</a></div>
    <div class="level5"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.contentcontrol">ContentControl</a></div>
    <div class="level6"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.primitives.buttonbase">ButtonBase</a></div>
    <div class="level7"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.primitives.togglebutton">ToggleButton</a></div>
    <div class="level8"><span class="xref">DropDownButton</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.animation.ianimatable">IAnimatable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.iframeworkinputelement">IFrameworkInputElement</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.iinputelement">IInputElement</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.isupportinitialize">ISupportInitialize</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.markup.iqueryambient">IQueryAmbient</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.markup.iaddchild">IAddChild</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.input.icommandsource">ICommandSource</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.html">GrapeCity.Wpf.SpreadSheet.CellType.Editors</a></h6>
  <h6><strong>Assembly</strong>: GrapeCity.Wpf.SpreadSheet.CellType.dll</h6>
  <h5 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_DropDownButton_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class DropDownButton : ToggleButton, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, ICommandSource</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class DropDownButton
    Inherits ToggleButton
    Implements IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, ICommandSource</code></pre>
  </div>
  <h5 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_DropDownButton_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>
  <b>Supported <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.visualstate">VisualState</a> list:</b>
  <table width="50%" cellspacing="2" cellpadding="5" frame="lhs">
    <tr>
      <th>
        <p>VisualStateGroup Name</p>
      </th>
      <th>
        <p>VisualState Name</p>
      </th>
      <th>
        <p>Description</p>
      </th>
    </tr>
    <tr>
      <td>
        <p>CommonStates</p>
      </td>
      <td>
        <p>Normal</p>
      </td>
      <td>
        <p>Represents the visual appearance when control is in normal state.</p>
      </td>
    </tr>
    <tr>
      <td>
        <p>CommonStates</p>
      </td>
      <td>
        <p>Disabled</p>
      </td>
      <td>
        <p>Represents the visual appearance when <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.uielement.isenabled">IsEnabled</a> is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a>.</p>
      </td>
    </tr>
    <tr>
      <td>
        <p>CommonStates</p>
      </td>
      <td>
        <p>Pressed</p>
      </td>
      <td>
        <p>Represents the visual appearance when <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.primitives.buttonbase.ispressed">IsPressed</a> is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a>.</p>
      </td>
    </tr>
    <tr>
      <td>
        <p>CommonStates</p>
      </td>
      <td>
        <p>MouseOver</p>
      </td>
      <td>
        <p>Represents the visual appearance when <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.uielement.ismouseover">IsMouseOver</a> is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a>.</p>
      </td>
    </tr>
    <tr>
      <td>
        <p>CheckStates</p>
      </td>
      <td>
        <p>Checked</p>
      </td>
      <td>
        <p>Represents the visual appearance when <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.primitives.togglebutton.ischecked">IsChecked</a> is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a>.</p>
      </td>
    </tr>
    <tr>
      <td>
        <p>CheckStates</p>
      </td>
      <td>
        <p>Unchecked</p>
      </td>
      <td>
        <p>Represents the visual appearance when <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.primitives.togglebutton.ischecked">IsChecked</a> is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a>.</p>
      </td>
    </tr>
    <tr>
      <td>
        <p>CheckStates</p>
      </td>
      <td>
        <p>Indeterminate</p>
      </td>
      <td>
        <p>Represents the visual appearance when <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.primitives.togglebutton.ischecked">IsChecked</a> is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a>.</p>
      </td>
    </tr>
    <tr>
      <td>
        <p>FocusStates</p>
      </td>
      <td>
        <p>Focused</p>
      </td>
      <td>
        <p>Represents the visual appearance when <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.uielement.iskeyboardfocused">IsKeyboardFocused</a> is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a>.</p>
      </td>
    </tr>
    <tr>
      <td>
        <p>FocusStates</p>
      </td>
      <td>
        <p>Unfocused</p>
      </td>
      <td>
        <p>Represents the visual appearance when <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.uielement.iskeyboardfocused">IsKeyboardFocused</a> is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a>.</p>
      </td>
    </tr>
    <tr>
      <td>
        <p>ValidationStates</p>
      </td>
      <td>
        <p>Valid</p>
      </td>
      <td>
        <p>Represents the visual appearance when <span class="xref">System.Windows.Controls.Validation.GetHasError(System.Windows.DependencyObject)</span> returns <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a>.</p>
      </td>
    </tr>
    <tr>
      <td>
        <p>ValidationStates</p>
      </td>
      <td>
        <p>InvalidFocused</p>
      </td>
      <td>
        <p>Represents the visual appearance when <span class="xref">System.Windows.Controls.Validation.GetHasError(System.Windows.DependencyObject)</span> returns <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a> and <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.uielement.iskeyboardfocused">IsKeyboardFocused</a> is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a>.</p>
      </td>
    </tr>
    <tr>
      <td>
        <p>ValidationStates</p>
      </td>
      <td>
        <p>InvalidUnfocused</p>
      </td>
      <td>
        <p>Represents the visual appearance when <span class="xref">System.Windows.Controls.Validation.GetHasError(System.Windows.DependencyObject)</span> returns <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a> and <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.uielement.iskeyboardfocused">IsKeyboardFocused</a> is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a>.</p>
      </td>
    </tr>
  </table>

</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="GrapeCity_Wpf_SpreadSheet_CellType_Editors_DropDownButton__ctor" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DropDownButton.#ctor">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DropDownButton.-ctor.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_DropDownButton__ctor">DropDownButton()</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="GrapeCity_Wpf_SpreadSheet_CellType_Editors_DropDownButton_OnMouseDown_System_Windows_Input_MouseButtonEventArgs_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DropDownButton.OnMouseDown(System.Windows.Input.MouseButtonEventArgs)">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DropDownButton.OnMouseDown.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_DropDownButton_OnMouseDown_System_Windows_Input_MouseButtonEventArgs_">OnMouseDown(MouseButtonEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Invoked when an unhandled <span class="xref">System.Windows.Input.Mouse.MouseDown</span> attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_DropDownButton_OnMouseUp_System_Windows_Input_MouseButtonEventArgs_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DropDownButton.OnMouseUp(System.Windows.Input.MouseButtonEventArgs)">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DropDownButton.OnMouseUp.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_DropDownButton_OnMouseUp_System_Windows_Input_MouseButtonEventArgs_">OnMouseUp(MouseButtonEventArgs)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_DropDownButton_OnToggle" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DropDownButton.OnToggle">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DropDownButton.OnToggle.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_DropDownButton_OnToggle">OnToggle()</a>
        </td>
        <td class="markdown level1 summary"><p>Called by the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.primitives.togglebutton.onclick">OnClick()</a> method to implement toggle behavior.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
