/// <summary> /// Coerces IsEnabled /// </summary> /// <param name="d"></param> /// <param name="basevalue"></param> /// <returns></returns> private static object CoerceFocusable(DependencyObject d, object basevalue) { RibbonControl control = (d as RibbonControl); if (control != null) { Ribbon ribbon = control.FindParentRibbon(); if (ribbon != null) { return(((bool)basevalue) && ribbon.Focusable); } } return(basevalue); }