[]
        
(Showing Draft Content)

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

OnLostKeyboardFocus Method

OnLostKeyboardFocus(KeyboardFocusChangedEventArgs)

Invoked when an unhandled System.Windows.Input.Keyboard.LostKeyboardFocus attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

Declaration
protected override void OnLostKeyboardFocus(KeyboardFocusChangedEventArgs e)
Protected Overrides Sub OnLostKeyboardFocus(e As KeyboardFocusChangedEventArgs)
Parameters
Type Name Description
KeyboardFocusChangedEventArgs e

The KeyboardFocusChangedEventArgs that contains event data.

Overrides
Remarks

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 System.Windows.Input.Keyboard.LostKeyboardFocus event is called. This method allows derived classes to handle the System.Windows.Input.Keyboard.LostKeyboardFocus event without attaching a delegate. This is the preferred technique for handling the event in a derived class.

Notes to Inheritors

When overriding System.Windows.Input.Keyboard.LostKeyboardFocus in a derived class, be sure to call the base class’s System.Windows.Input.Keyboard.LostKeyboardFocus method so that registered delegates receive the event.