Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
680
Application menu xaml icons opacity different to Quick Access icons
posted

In a previous post, I wanted to use Xaml icons in the application menu and the quick access toolbar. I ended up copying the entire default Infragistics control template:

 

<

 

 

ControlTemplate TargetType="{x:Type ButtonBase}" x:Key="RibbonButtonToolTemplate">

renamed it to ribbonButtonToolTemplateEx, and at the end of it I added  

<Trigger Property="IsEnabled" Value="False">

    <Setter Property="Foreground" Value="{DynamicResource {x:Static igRibbon:RibbonBrushKeys .ToolDisabledForegroundTextFillKey}}" />

 

 

 

 

  <Setter Property="Opacity" TargetName="image" Value="0.5" />

 

 

 

 

 </Trigger

The QAT works fine now, but the opacity of the QAT buttons does not follow through to the Application menu - all those icons opacity remain at 1.0.  How do I get the opacity to work the same for the QAT and the Application Menu, when IsEnabled=False?