I have a requirement to create a custom vsix (visual studio extension project) wizard which is a single windows form, I developed it considering the dark theme selected in visual studio. Hence the window background in the wizard steps are shown in dark background. When user changes the visual studio theme to light background, the wizard dialog colors are contradictory to that of background visual studio theme. Is there a easy way to access the background theme which was set in visual studio programmatically in C#? And based on that theme can I develop other dialog windows and display it to the user? In short can I do something shown as below in pseudo code?
if(VS.Theme == Dark)
{
ShowDarkWizard();
}
else if(VS.Theme == Light)
{
ShowLightWizard();
}
else if(VS.Theme == Blue)
{
ShowBlueWizard();
}
If your wizard dialog is implemented by deriving from DialogWindow Class (which it probably should be if you're using WPF), you can leverage the VsBrushes Class in your XAML markup to mirror VS styles.
Sincerely,