Skip to content

Fix WPF Gallery navigation text overlapping scrollbar at 200% text scaling#799

Open
wnvko-msft wants to merge 1 commit into
microsoft:mainfrom
wnvko-msft:mvenkov/fix-wpfgallery-nav-text-clipped-by-scrollbar
Open

Fix WPF Gallery navigation text overlapping scrollbar at 200% text scaling#799
wnvko-msft wants to merge 1 commit into
microsoft:mainfrom
wnvko-msft:mvenkov/fix-wpfgallery-nav-text-clipped-by-scrollbar

Conversation

@wnvko-msft

@wnvko-msft wnvko-msft commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Problem

In WPF Gallery, navigation pane labels (e.g. "File and Folder Dialogs") overlap the vertical scrollbar when Windows text scaling is set to 200%. Fixes ADO 3017671.

Cause

The Fluent theme's vertical scrollbar is a 12px overlay drawn on top of the content's right edge. The auto-sized nav pane grows to fit each item's text, but the overlay scrollbar still covers the last characters of the widest label - made worse at 200%.

Fix

Reserve 16px of right-side space on the nav item content in MainWindow.xaml so the pane accounts for the scrollbar and the overlay covers the margin instead of the text.

Microsoft Reviewers: Open in CodeFlow

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.

1 participant