I am writing a Visual Studio 2012/2013 Extension and for performance reasons, all the configuration values are cached.
To make changes in "Fonts and Colors" visible in real-time i need to know, when the options where changed by the user.
Is there a way to be notified if any option settings were changed by the user?
At the moment I have a workaround and use the Windows.WindowCreated
event in my Initialize method:
Dispatcher.CurrentDispatcher.BeginInvoke(
new Action( () => {
DTE.Events.WindowEvents.WindowCreated += WindowEvents_WindowCreated;
} ), DispatcherPriority.ApplicationIdle, null );
Thanks for all the input. I think I found something useful. I have a
IWpfTextViewCreationListener
. I added following code lines:The
FormatItemsEventArgs
include all the changed fonts and colors. That is exactly what I needed.