# GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcComboBox.OnLostKeyboardFocus

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcComboBox_OnLostKeyboardFocus_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcComboBox.OnLostKeyboardFocus*">OnLostKeyboardFocus Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcComboBox_OnLostKeyboardFocus_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcComboBox.OnLostKeyboardFocus*"></a>
<h4 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcComboBox_OnLostKeyboardFocus_System_Windows_Input_KeyboardFocusChangedEventArgs_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcComboBox.OnLostKeyboardFocus(System.Windows.Input.KeyboardFocusChangedEventArgs)">OnLostKeyboardFocus(KeyboardFocusChangedEventArgs)</h4>
<div class="markdown level1 summary"><p>Invoked when an unhandled <span class="xref">System.Windows.Input.Keyboard.LostKeyboardFocus</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>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected override void OnLostKeyboardFocus(KeyboardFocusChangedEventArgs e)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Overrides Sub OnLostKeyboardFocus(e As KeyboardFocusChangedEventArgs)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.input.keyboardfocuschangedeventargs">KeyboardFocusChangedEventArgs</a></td>
      <td><span class="parametername">e</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.input.keyboardfocuschangedeventargs">KeyboardFocusChangedEventArgs</a> that contains event data.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ControlBase.OnLostKeyboardFocus.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_ControlBase_OnLostKeyboardFocus_System_Windows_Input_KeyboardFocusChangedEventArgs_">ControlBase.OnLostKeyboardFocus(KeyboardFocusChangedEventArgs)</a></div>
<h5 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcComboBox_OnLostKeyboardFocus_System_Windows_Input_KeyboardFocusChangedEventArgs__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This implementation updates the appearance of the control when it loses focus. Do not rely on this method to report when the control loses focus.
The LostKeyboardFocus method is called before any event handler for the <span class="xref">System.Windows.Input.Keyboard.LostKeyboardFocus</span> event is called.
This method allows derived classes to handle the  <span class="xref">System.Windows.Input.Keyboard.LostKeyboardFocus</span>  event without attaching a delegate. This is the preferred technique for handling the event in a derived class.</p>
<p><b>Notes to Inheritors</b></p>
When overriding <span class="xref">System.Windows.Input.Keyboard.LostKeyboardFocus</span> in a derived class, be sure to call the base class’s <span class="xref">System.Windows.Input.Keyboard.LostKeyboardFocus</span> method so that registered delegates receive the event.
</div>
</div>
