I want to be able to define styles for the TabControl, DocumentWindow, etc. used in my app so that the background color matches the background color of the Ribbon control for the current theme of the app. In addition, I have some triggers that set the background of my edit controls when the control is readonly:
<Trigger Property="IsReadOnly" Value="true">
<Setter Property="Control.Background" >
<Setter Property="Control.FontWeight" Value="SemiBold" />
As you can see above, I have the brush color hardcoded but I want to be able to have it match whatever the background color of the ribbon control that my app is using.
Is this possible?