# C1.WPF.FlexGrid.C1FlexComboBox

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_FlexGrid_C1FlexComboBox" data-uid="C1.WPF.FlexGrid.C1FlexComboBox" class="text-break">C1FlexComboBox Class
</h1>
  <div class="markdown level0 summary"><p>ComboBox that looks the same in WPF and Silverlight and implements the
<a class="xref" href="C1.WPF.FlexGrid.C1FlexComboBox.IsEditable.html#C1_WPF_FlexGrid_C1FlexComboBox_IsEditable">IsEditable</a> property in both platforms
(the Silverlight ComboBox is not editable).</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.threading.dispatcherobject">DispatcherObject</a></div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.dependencyobject">DependencyObject</a></div>
    <div class="level3"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.visual">Visual</a></div>
    <div class="level4"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.uielement">UIElement</a></div>
    <div class="level5"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.frameworkelement">FrameworkElement</a></div>
    <div class="level6"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.control">Control</a></div>
    <div class="level7"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.primitives.textboxbase">TextBoxBase</a></div>
    <div class="level8"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.textbox">TextBox</a></div>
    <div class="level9"><span class="xref">C1FlexComboBox</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>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.FlexGrid.html">C1.WPF.FlexGrid</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.FlexGrid.4.6.2.dll</h6>
  <h5 id="C1_WPF_FlexGrid_C1FlexComboBox_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class C1FlexComboBox : TextBox, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class C1FlexComboBox
    Inherits TextBox
    Implements IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild</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_FlexGrid_C1FlexComboBox__ctor" data-uid="C1.WPF.FlexGrid.C1FlexComboBox.#ctor">
          <a class="xref" href="C1.WPF.FlexGrid.C1FlexComboBox.-ctor.html#C1_WPF_FlexGrid_C1FlexComboBox__ctor">C1FlexComboBox()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.WPF.FlexGrid.C1FlexComboBox.html">C1FlexComboBox</a>.</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_FlexGrid_C1FlexComboBox_DropDownItems" data-uid="C1.WPF.FlexGrid.C1FlexComboBox.DropDownItems">
          <a class="xref" href="C1.WPF.FlexGrid.C1FlexComboBox.DropDownItems.html#C1_WPF_FlexGrid_C1FlexComboBox_DropDownItems">DropDownItems</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the list of items to show in the dropdown list.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_C1FlexComboBox_IsDropDownEnabled" data-uid="C1.WPF.FlexGrid.C1FlexComboBox.IsDropDownEnabled">
          <a class="xref" href="C1.WPF.FlexGrid.C1FlexComboBox.IsDropDownEnabled.html#C1_WPF_FlexGrid_C1FlexComboBox_IsDropDownEnabled">IsDropDownEnabled</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the user should be allowed to open the drop-down
portion of the control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_C1FlexComboBox_IsDroppedDown" data-uid="C1.WPF.FlexGrid.C1FlexComboBox.IsDroppedDown">
          <a class="xref" href="C1.WPF.FlexGrid.C1FlexComboBox.IsDroppedDown.html#C1_WPF_FlexGrid_C1FlexComboBox_IsDroppedDown">IsDroppedDown</a>
        </td>
        <td class="markdown level1 summary"><p>Indicates whether the dropdown is currently being displayed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_C1FlexComboBox_IsEditable" data-uid="C1.WPF.FlexGrid.C1FlexComboBox.IsEditable">
          <a class="xref" href="C1.WPF.FlexGrid.C1FlexComboBox.IsEditable.html#C1_WPF_FlexGrid_C1FlexComboBox_IsEditable">IsEditable</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that determines whether the textbox is
editable or restricted to the items in the <a class="xref" href="C1.WPF.FlexGrid.C1FlexComboBox.DropDownItems.html#C1_WPF_FlexGrid_C1FlexComboBox_DropDownItems">DropDownItems</a>
collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_C1FlexComboBox_ListBox" data-uid="C1.WPF.FlexGrid.C1FlexComboBox.ListBox">
          <a class="xref" href="C1.WPF.FlexGrid.C1FlexComboBox.ListBox.html#C1_WPF_FlexGrid_C1FlexComboBox_ListBox">ListBox</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a reference to the <a class="xref" href="C1.WPF.FlexGrid.C1FlexComboBox.ListBox.html#C1_WPF_FlexGrid_C1FlexComboBox_ListBox">ListBox</a> used to display the drop-down items.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_C1FlexComboBox_MaxDropDownHeight" data-uid="C1.WPF.FlexGrid.C1FlexComboBox.MaxDropDownHeight">
          <a class="xref" href="C1.WPF.FlexGrid.C1FlexComboBox.MaxDropDownHeight.html#C1_WPF_FlexGrid_C1FlexComboBox_MaxDropDownHeight">MaxDropDownHeight</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the maximum height of the dropdown in pixels.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_C1FlexComboBox_SelectedIndex" data-uid="C1.WPF.FlexGrid.C1FlexComboBox.SelectedIndex">
          <a class="xref" href="C1.WPF.FlexGrid.C1FlexComboBox.SelectedIndex.html#C1_WPF_FlexGrid_C1FlexComboBox_SelectedIndex">SelectedIndex</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the index of the item that is currently selected on the list.</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_FlexGrid_C1FlexComboBox_OnApplyTemplate" data-uid="C1.WPF.FlexGrid.C1FlexComboBox.OnApplyTemplate">
          <a class="xref" href="C1.WPF.FlexGrid.C1FlexComboBox.OnApplyTemplate.html#C1_WPF_FlexGrid_C1FlexComboBox_OnApplyTemplate">OnApplyTemplate()</a>
        </td>
        <td class="markdown level1 summary"><p>Overridden to remove focus/mouse borders and add dropdown button
to regular <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.textbox">TextBox</a> template.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_C1FlexComboBox_OnCreateAutomationPeer" data-uid="C1.WPF.FlexGrid.C1FlexComboBox.OnCreateAutomationPeer">
          <a class="xref" href="C1.WPF.FlexGrid.C1FlexComboBox.OnCreateAutomationPeer.html#C1_WPF_FlexGrid_C1FlexComboBox_OnCreateAutomationPeer">OnCreateAutomationPeer()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets an AutomationPeer object used for testing the control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_C1FlexComboBox_OnIsDroppedDownChanged_System_EventArgs_" data-uid="C1.WPF.FlexGrid.C1FlexComboBox.OnIsDroppedDownChanged(System.EventArgs)">
          <a class="xref" href="C1.WPF.FlexGrid.C1FlexComboBox.OnIsDroppedDownChanged.html#C1_WPF_FlexGrid_C1FlexComboBox_OnIsDroppedDownChanged_System_EventArgs_">OnIsDroppedDownChanged(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <a class="xref" href="C1.WPF.FlexGrid.C1FlexComboBox.IsDroppedDownChanged.html">IsDroppedDownChanged</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_C1FlexComboBox_OnLostFocus_System_Windows_RoutedEventArgs_" data-uid="C1.WPF.FlexGrid.C1FlexComboBox.OnLostFocus(System.Windows.RoutedEventArgs)">
          <a class="xref" href="C1.WPF.FlexGrid.C1FlexComboBox.OnLostFocus.html#C1_WPF_FlexGrid_C1FlexComboBox_OnLostFocus_System_Windows_RoutedEventArgs_">OnLostFocus(RoutedEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Overridden to close the drop-down when losing focus.</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_FlexGrid_C1FlexComboBox_IsDroppedDownChanged" data-uid="C1.WPF.FlexGrid.C1FlexComboBox.IsDroppedDownChanged">
          <a class="xref" href="C1.WPF.FlexGrid.C1FlexComboBox.IsDroppedDownChanged.html">IsDroppedDownChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the value of the <a class="xref" href="C1.WPF.FlexGrid.C1FlexComboBox.IsDroppedDown.html#C1_WPF_FlexGrid_C1FlexComboBox_IsDroppedDown">IsDroppedDown</a> property changes.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
