RibbonToggleButton.OnGotKeyboardFocus Method
Provides class handling for the GotKeyboardFocus event and enables the keyboard focus visual when this control gets keyboard focus.
Namespace: Microsoft.Windows.Controls.Ribbon
Assembly: RibbonControlsLibrary (in RibbonControlsLibrary.dll)
Syntax
'Declaration
Protected Overrides Sub OnGotKeyboardFocus ( _
e As KeyboardFocusChangedEventArgs _
)
protected override void OnGotKeyboardFocus(
KeyboardFocusChangedEventArgs e
)
protected:
virtual void OnGotKeyboardFocus(
KeyboardFocusChangedEventArgs^ e
) override
abstract OnGotKeyboardFocus :
e:KeyboardFocusChangedEventArgs -> unit
override OnGotKeyboardFocus :
e:KeyboardFocusChangedEventArgs -> unit
protected override function OnGotKeyboardFocus(
e : KeyboardFocusChangedEventArgs
)
Parameters
- e
Type: System.Windows.Input.KeyboardFocusChangedEventArgs
The event data.
Remarks
This method overrides the default behavior and enables the keyboard focus visual when this control gets keyboard focus.
This implementation does not change the handled state (the RoutedEventArgs.Handled property) of the GotKeyboardFocus event data.
.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.