Share via


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

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

See Also

Reference

RibbonGalleryItem Class

Microsoft.Windows.Controls.Ribbon Namespace