madskristensen / Community.VisualStudio.Toolkit

A community toolkit for writing Visual Studio extensions
Other
24 stars 3 forks source link

Ignored VsTheme property changes in the designer #27

Closed reduckted closed 3 years ago

reduckted commented 3 years ago

ThemedDialogStyleLoader.SetUseDefaultThemedDialogStyles() can fail in the designer. It seems that this is caused by the resource VsResourceKeys.ThemedDialogDefaultStylesKey not always being found. I've wrapped the entire dependency property change handler in a design-mode check so that the property has no effect in the designer.

madskristensen commented 3 years ago

That's such a great solution. Thank you