[release/10.0] Fix Fluent in Windows 10 #11342
Open
+130
−12
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #11277
Description
The default window background is transparent, and backdrop material is applied to the window based on the developer’s preference. However, Windows 10 does not support backdrop materials, which results in incorrect window rendering and leads to a arid Fluent experience.
This change overrides the default window background value based on the selected backdrop preference and the OS the application is running on. Additionally, it listens for HC theme changes, since backdrop materials should not be applied when HC themes are enabled.
Customer Impact
Users will be able to seamlessly use Fluent‑themed applications on Windows 10, while developers retain the ability to use backdrop materials on Windows 11 without compromise.
Regression
Yes
Testing
Local Build Pass
Tested the changes in original PR manually on Windows 10.
Risk
Low, fixes of similar kind are already in release/9.0 branch.
Microsoft Reviewers: Open in CodeFlow