Microsoft.Windows.Controls.Ribbon.RibbonMenuButton.OnKeyTipAccessed C# (CSharp) Метод

OnKeyTipAccessed() защищенный Метод

protected OnKeyTipAccessed ( KeyTipAccessedEventArgs e ) : void
e KeyTipAccessedEventArgs
Результат void
        protected virtual void OnKeyTipAccessed(KeyTipAccessedEventArgs e)
        {
            if (e.OriginalSource == this)
            {
                // Open the dropdown of parent group and self.
                RibbonHelper.OpenParentRibbonGroupDropDownSync(this, TemplateApplied);
                IsDropDownOpen = true;
                RibbonHelper.NavigateToNextMenuItemOrGallery(this, -1, BringIndexIntoView);
                UIElement popupChild = _popup.TryGetChild();
                if (popupChild != null)
                {
                    KeyTipService.SetIsKeyTipScope(popupChild, true);
                    e.TargetKeyTipScope = popupChild;
                }
                e.Handled = true;
            }
        }