
I have several tabs for DocumentWindows and ToolWindows that are generated dynamically. The color and the font color of these tabs need to change at certain times (when they are selected/unselected, when the theme changes). I have been unable to change the font color of the tabs and have only been able to change the tab color through the TabTintColor property.
All of the windows are generated dynamically in the code behind; there are no DocumentWindows or ToolWindows in the xaml for this page.
The color and font color of the tabs each bind to one of two propeties, (selected tab/text, unselected tab/text) and the text shown on the tab must bind to the Title property on the window.
What is the best way to dynamically change the background color and text color for these dynamically generated tabs?