Posted 16 years ago
by Mike Strobel
-
Software Engineer,
CDC Software
I've noticed that the "Close" button for document tabs uses the same foreground brush regardless of whether the button is being drawn in the TabbedMdiContainer or within the document tabs themselves. This is a problem for me, as our workspace has a dark background, and thus we would like the document list drop-down indicator to render in white. However, the document tab background remains light, and thus we would like the close buttons to render in black. I have tried placing the following in our shell's resource dictionary without luck:
With the above resources, the document list drop-down indicator renders in white, as do the "close" buttons (hosted within the document tabs). Any idea why this isn't working? Could the default style be changed such that the close button uses the document tab foreground brush when being rendered inside the tabs?
Thanks,
Mike
[Modified at 11/26/2008 08:45 AM]
<SolidColorBrush x:Key="{x:Static apthemes:DockingCommonDictionary.TabbedMdiContainerButtonForegroundNormalBrushKey}"
Color="White" />
<Style TargetType="{x:Type apdocking:DocumentTabDecorator}"
BasedOn="{StaticResource {x:Type apdocking:DocumentTabDecorator}}">
<Style.Resources>
<SolidColorBrush x:Key="{x:Static apthemes:DockingCommonDictionary.TabbedMdiContainerButtonForegroundNormalBrushKey}"
Color="Black" />
</Style.Resources>
</Style>
Thanks,
Mike
[Modified at 11/26/2008 08:45 AM]