gpt4 book ai didi

c# - VSIX(Visual Studio 扩展) "Fonts and Colors"更改事件

转载 作者:行者123 更新时间:2023-11-30 15:31:39 25 4
gpt4 key购买 nike

我正在编写 Visual Studio 2012/2013 扩展,出于性能原因,所有配置值都被缓存。

要使“字体和颜色”的更改实时可见,我需要知道用户何时更改了选项。

如果用户更改了任何选项设置,是否可以通过某种方式得到通知?

目前我有一个解决方法,在我的 Initialize 方法中使用 Windows.WindowCreated 事件:

Dispatcher.CurrentDispatcher.BeginInvoke(
new Action( () => {
DTE.Events.WindowEvents.WindowCreated += WindowEvents_WindowCreated;
} ), DispatcherPriority.ApplicationIdle, null );

最佳答案

关于c# - VSIX(Visual Studio 扩展) "Fonts and Colors"更改事件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20376310/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com