Kenny Arnold
Kenny Arnold

Reputation: 378

How can I tell whether or not user has the new MS Office visual style?

I make a c# add-in for an MS Office desktop app. It uses WPF for front end UI. I want the background of the forms in the add-in to match the Office app colors.

Microsoft recently launched a brand-new visual style for office. I want to be able to check programmatically if the user has the 'visual refresh' or not in order to correctly style my forms.

I've tried just checking the registry (as stated from this article), but that doesn't always work. Sometimes a user has the 'visual refresh' even without those registry keys being present. I need a check that is more reliable if it exists.

I also can't just check if the user is Windows 11 vs Windows 10, because Windows 10 users can also get the visual refresh, and I've seen some Windows 11 users that still have the old styles.

Upvotes: 2

Views: 52

Answers (0)

Related Questions