When clicking on the application menu, in the quick access toolbar or on a ribbon tab, the ribbon bar control steals the focus from whatever control was focused.
I found the following solutions:
- quickaccesstoolbar: ribbon.QuickAccessToolBar.InnerItem.Children[2].CanFocus = false;
- application menu:
ribbon.RibbonBarElement.ApplicationButtonElement.CanFocus = false;
ribbon.RibbonBarElement.ApplicationButtonElement.ActionButton.CanFocus = false;
- tabs: tab.CanFocus = false;
I found the following solutions:
- quickaccesstoolbar: ribbon.QuickAccessToolBar.InnerItem.Children[2].CanFocus = false;
- application menu:
ribbon.RibbonBarElement.ApplicationButtonElement.CanFocus = false;
ribbon.RibbonBarElement.ApplicationButtonElement.ActionButton.CanFocus = false;
- tabs: tab.CanFocus = false;