RibbonGalleryItem.OnLostKeyboardFocus Method
Provides class handling for the LostKeyboardFocus routed event.
Namespace: Microsoft.Windows.Controls.Ribbon
Assembly: RibbonControlsLibrary (in RibbonControlsLibrary.dll)
Syntax
'Declaration
Protected Overrides Sub OnLostKeyboardFocus ( _
e As KeyboardFocusChangedEventArgs _
)
protected override void OnLostKeyboardFocus(
KeyboardFocusChangedEventArgs e
)
protected:
virtual void OnLostKeyboardFocus(
KeyboardFocusChangedEventArgs^ e
) override
abstract OnLostKeyboardFocus :
e:KeyboardFocusChangedEventArgs -> unit
override OnLostKeyboardFocus :
e:KeyboardFocusChangedEventArgs -> unit
protected override function OnLostKeyboardFocus(
e : KeyboardFocusChangedEventArgs
)
Parameters
- e
Type: System.Windows.Input.KeyboardFocusChangedEventArgs
The event data.
Remarks
This method sets the IsPressed and IsHighlighted properties to false when this control loses keyboard focus.
This implementation marks the LostKeyboardFocus event as handled by setting the Handled property of the event data to true.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.