Microsoft.Windows.Controls.Ribbon.RibbonButton.OnCoerceFocusable C# (CSharp) Method

OnCoerceFocusable() private static method

private static OnCoerceFocusable ( DependencyObject d, object baseValue ) : object
d System.Windows.DependencyObject
baseValue object
return object
        private static object OnCoerceFocusable(DependencyObject d, object baseValue)
        {
            RibbonButton button = (RibbonButton)d;
            if (button.CoerceFocusable)
            {
                return false;
            }

            return baseValue;
        }