I'm developing SQL Server Management Studio Add-in by EnvDTE, I want to change the color of the tab based on user setting (Something Like TabsStudio) in WindowCreated event like following.
private void WindowCreated(EnvDTE.Window window)
{
// logic for apply color to current window's tab header.
}
I am not able to get tab header object of parameter window. I tried answers from this link but not getting child from following line.
System.Windows.Media.VisualTreeHelper.GetChild(frameworkElement, 0);
Is it possible with above code or is there any other solution to do this? Your ideas or suggestions would be a great help for me. Thanks in advance.