Change tab color - SQL Server Management Studio Add-in

I am developing an add-on for SQL Server Management Studio over EnvDTE, I want to change the color of the tab based on user preferences (something like TabsStudio ) in the WindowCreated event, as shown below.

private void WindowCreated(EnvDTE.Window window)
{
    // logic for apply color to current window tab header.
}

I can not get the title bar of the options window. I tried the answers for this link , but did not get from the next line.

System.Windows.Media.VisualTreeHelper.GetChild(frameworkElement, 0);

Is this possible with the above code, or is there any other solution for this? Your ideas or suggestions would be of great help to me. Thanks in advance.

+4
source share

Source: https://habr.com/ru/post/1623429/


All Articles