ComponentFactory.Krypton.Ribbon.RibbonTabController.KeyTipSelect C# (CSharp) Method

KeyTipSelect() public method

Perform actual selection of the item.
public KeyTipSelect ( KryptonRibbon ribbon ) : void
ribbon KryptonRibbon Reference to owning ribbon instance.
return void
        public void KeyTipSelect(KryptonRibbon ribbon)
        {
            // If we are not selected then make us so
            if (_ribbon.SelectedTab != _target.RibbonTab)
                _ribbon.SelectedTab = _target.RibbonTab;

            // Switch focus to this view
            _ribbon.FocusView = _target;

            // Update key tips with those appropriate for this tab
            KeyTipMode mode = (_ribbon.RealMinimizedMode ? KeyTipMode.PopupMinimized : KeyTipMode.SelectedGroups);
            _ribbon.KeyTipMode = mode;
            _ribbon.SetKeyTips(_ribbon.GenerateKeyTipsForSelectedTab(), mode);
        }