Skip to content

Conversation

@citelao
Copy link
Contributor

@citelao citelao commented Feb 11, 2025

Today, WinAppSDK devs should be using ThemeSettings.Changed to detect high-contrast changes, not AccessibilitySettings.HighContrastChanged (which depends on CoreWindow).

This change documents that requirement.

See corresponding docs change on HighContrastChanged & [issue in WinAppSDK codebase](microsoft/microsoft-ui-xaml#4163

Warning

HOLD until we validate this is a complete replacement.

@prmerger-automator
Copy link
Contributor

@citelao : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@learn-build-service-prod
Copy link
Contributor

Learn Build status updates of commit d128401:

✅ Validation status: passed

File Status Preview URL Details
hub/apps/windows-app-sdk/migrate-to-windows-app-sdk/api-mapping-table.md ✅Succeeded

For more details, please refer to the build report.

For any questions, please:

@citelao citelao changed the title [Accessibility] Document the HighContrastChanged fallback [DRAFT][Accessibility] Document the HighContrastChanged fallback Feb 11, 2025
@stevewhims stevewhims merged commit 306bee7 into MicrosoftDocs:docs Feb 11, 2025
2 checks passed
@scfeng10
Copy link

scfeng10 commented Feb 11, 2025

It seems that while this is the correct API to use to listen to theme changes, the Changed event does not fire when switching between High Contrast themes. I filed an internal bug to track this issue Bug 56208821: ThemeSettings.Changed event does not fire when switching between High Contrast themes

learn-build-service-prod bot pushed a commit that referenced this pull request Apr 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants