Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jul 30, 2025

The "Map service token" placeholder text in the MapControl sample page was getting truncated when text scaling was set to 200%. This accessibility issue affected users with low vision who rely on text scaling features.

Root Cause
The PasswordBox control used a fixed Width="200" which prevented the control from expanding to accommodate larger text when scaling was applied.

Solution
Changed the PasswordBox from using a fixed width to MinWidth="200", allowing the control to expand beyond 200 pixels when needed while maintaining the minimum width for normal text scaling scenarios.

Technical Changes

  • Updated WinUIGallery/Samples/ControlPages/MapControlPage.xaml line 39
  • Changed Width="200" to MinWidth="200" on the Map Service Token PasswordBox

This approach is consistent with responsive design patterns used throughout the codebase and ensures the placeholder text remains fully visible at all text scaling levels without compromising the existing layout.

Testing
At 200% text scaling, the PasswordBox will now expand to provide sufficient space for the placeholder text to render completely, while maintaining the original 200px width at normal scaling levels.

Fixes #1951.

Warning

Firewall rules blocked me from connecting to one or more addresses

I tried to connect to the following addresses, but was blocked by firewall rules:

  • e7bvsblobprodcus348.vsblob.vsassets.io
    • Triggering command: dotnet restore WinUIGallery.sln (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

…of fixed Width

Co-authored-by: niels9001 <9866362+niels9001@users.noreply.github.com>
Copilot AI changed the title [WIP] [WinUI 3 Gallery: Media-> MapControl]: On applying text scaling to 200%, 'Map Service Token' placeholder text is getting truncated. Fix MapControl placeholder text truncation at 200% text scaling Jul 30, 2025
Copilot AI requested a review from niels9001 July 30, 2025 14:20
@niels9001 niels9001 marked this pull request as ready for review July 30, 2025 14:42
@niels9001 niels9001 requested a review from marcelwgn July 30, 2025 14:42
@niels9001 niels9001 enabled auto-merge (squash) July 30, 2025 14:46
@marcelwgn
Copy link
Contributor

/azp run

@niels9001 niels9001 merged commit d23d991 into main Jul 30, 2025
2 checks passed
@niels9001 niels9001 deleted the copilot/fix-1951 branch July 30, 2025 18:10
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.

[WinUI 3 Gallery: Media-> MapControl]: On applying text scaling to 200%, 'Map Service Token' placeholder text is getting truncated.

3 participants