Microsoft.Windows.Controls.Ribbon.RibbonGallery.OnIsKeyboardFocusWithinChanged C# (CSharp) Méthode

OnIsKeyboardFocusWithinChanged() protected méthode

Called when the focus changes within the subtree
protected OnIsKeyboardFocusWithinChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void
e System.Windows.DependencyPropertyChangedEventArgs
Résultat void
        protected override void OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs e)
        {
            base.OnIsKeyboardFocusWithinChanged(e);

            if (IsKeyboardFocusWithin && !IsSelected)
            {
                // If an item within us got focus (probably programatically), we need to become selected
                IsSelected = true;
            }
        }
RibbonGallery