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();
}
}
RibbonMenuButton::OnGotKeyboardFocusThunk ( object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void |