Microsoft.Windows.Controls.Ribbon.RibbonMenuButton.OnGotKeyboardFocusThunk C# (CSharp) Method

OnGotKeyboardFocusThunk() private method

private OnGotKeyboardFocusThunk ( System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void
e System.Windows.Input.KeyboardFocusChangedEventArgs
return void
        private void OnGotKeyboardFocusThunk(KeyboardFocusChangedEventArgs e)
        {
            // Call base.OnIsKeyboardFocusWithinChanged only if the new focus
            // is not a direct descendant of menu button.
            if (e.OriginalSource != this &&
                !TreeHelper.IsVisualAncestorOf(this, e.OriginalSource as DependencyObject))
            {
                BaseOnIsKeyboardFocusWithin();
            }
        }

Same methods

RibbonMenuButton::OnGotKeyboardFocusThunk ( object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void