Skip to content

Add .NET 11 Application text-size and accent-color APIs#14733

Open
KlausLoeffelmann wants to merge 8 commits into
dotnet:mainfrom
KlausLoeffelmann:Net11Api_01_New_Application_Api
Open

Add .NET 11 Application text-size and accent-color APIs#14733
KlausLoeffelmann wants to merge 8 commits into
dotnet:mainfrom
KlausLoeffelmann:Net11Api_01_New_Application_Api

Conversation

@KlausLoeffelmann

@KlausLoeffelmann KlausLoeffelmann commented Jul 14, 2026

Copy link
Copy Markdown
Member

Closes #14583.
Contributes to #14694.

  • Exposes the Windows Accessibility text-size setting through Application.SystemTextSize.
  • Adds process-wide and per-form change notifications without statically rooting forms.
  • Adds SystemTextSizeAwareness and application-default wiring.
  • Adds Application.GetWindowsAccentColor() using a small hand-authored WinRT ABI without a CsWinRT dependency.
  • Includes focused unit coverage for API behavior, notifications, and the interop path.
Microsoft Reviewers: Open in CodeFlow

KlausLoeffelmann and others added 6 commits July 8, 2026 22:39
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Hand-author the IUISettings3 / UIColor / UIColorType WinRT ABI types and generate the RoActivateInstance / WindowsCreateString / WindowsDeleteString / IInspectable / HSTRING Win32 bindings via CsWin32. The WinRT ABI types are excluded from the .NET Framework build, which does not consume them.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Expose the user's current Windows accent color by activating the Windows.UI.ViewManagement.UISettings runtime component and reading UIColorType.Accent. When no accent color is set, Windows returns an OS-defined default, so the method always yields a usable color.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
KlausLoeffelmann and others added 2 commits July 14, 2026 16:09
Use event subscriptions as the opt-in for text-size notifications and
remove the redundant awareness API surface.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 40d0f0f7-a584-4167-9187-9d529b7c70f8
Wrap the Form event remark in a paragraph and remove the redundant
nullable handler initialization reported by the Arcade analyzers.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 40d0f0f7-a584-4167-9187-9d529b7c70f8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[NET 11 API Proposal] Application APIs for Windows accent color and Accessibility text scaling

1 participant