Posted 13 years ago
by Marc Ziss

I've been struggling with what should probably be an easy question. I have a need to change the Toolwindows text from the default Title to different text. I accomplished this using a ToolWindow.Header the problem is the colors are now different then the rest of the style. In this example the nonselected tab text for the TextBlock "Chart Objects" is black and the nonselected tab text for the Title "XML Viewer: is white (which is correct). Is there a style / trigger that needs to be applied to the TextBlock I set up for "Chart Objects"?
Thanks,
Marc
Thanks,
Marc
<docking:ToolWindow Title="{Binding CurrentSlide.SlideTitle, StringFormat=Chart Objects ({0}),
Converter={StaticResource DocumentTitleConverter}}">
<docking:ToolWindow.Header>
<TextBlock AutomationProperties.Name="Title" Text="Chart Objects"/>
</docking:ToolWindow.Header>
<views:ChartObjectWorkbenchView />
</docking:ToolWindow>
<docking:ToolWindow
x:Name="xmlViewer"
Title="XML Viewer" DataContext="{Binding PresentationViewModel}">
<ContentControl />
</docking:ToolWindow>