From 6518fd836714909ba6eca3b90abe95849e896466 Mon Sep 17 00:00:00 2001 From: "Aleksandar Marinov (INFRAGISTICS INC)" Date: Mon, 13 Jul 2026 12:14:45 +0200 Subject: [PATCH] Fix 2D scrolling on Design Guidance pages at reflow dimensions (WCAG 1.4.10) Typography, Spacing and Geometry pages showed both horizontal and vertical scrollbars in reflow mode because their reference tables used fixed-width Grid columns and the images used fixed sizes, forcing content wider than the viewport. Disable horizontal scrolling and make the tables reflow via proportional (star) column widths capped with MaxWidth, and let the images scale down (and wrap, on Spacing) so content fits within the available width and only a single vertical scrollbar is needed. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../Views/DesignGuidance/GeometryPage.xaml | 12 ++-- .../Views/DesignGuidance/SpacingPage.xaml | 35 +++++----- .../Views/DesignGuidance/TypographyPage.xaml | 68 +++++++++---------- 3 files changed, 57 insertions(+), 58 deletions(-) diff --git a/Sample Applications/WPFGallery/Views/DesignGuidance/GeometryPage.xaml b/Sample Applications/WPFGallery/Views/DesignGuidance/GeometryPage.xaml index 8ee027686..2539b33c9 100644 --- a/Sample Applications/WPFGallery/Views/DesignGuidance/GeometryPage.xaml +++ b/Sample Applications/WPFGallery/Views/DesignGuidance/GeometryPage.xaml @@ -17,7 +17,7 @@ - + Geometry describes the shape, size and position of UI elements on screen. @@ -28,7 +28,7 @@ You can reference built-in corner radii styles using: CornerRadius="{StaticResource ControlCornerRadius}" . - + - + - + @@ -119,7 +119,7 @@ - + @@ -160,7 +160,7 @@ - + diff --git a/Sample Applications/WPFGallery/Views/DesignGuidance/SpacingPage.xaml b/Sample Applications/WPFGallery/Views/DesignGuidance/SpacingPage.xaml index 725b672c4..96e822528 100644 --- a/Sample Applications/WPFGallery/Views/DesignGuidance/SpacingPage.xaml +++ b/Sample Applications/WPFGallery/Views/DesignGuidance/SpacingPage.xaml @@ -17,7 +17,7 @@ - @@ -26,8 +26,8 @@ Use the following spacing values to maintain a consistent layout throughout your app. - - + + @@ -36,11 +36,11 @@ HorizontalAlignment="Center" Style="{StaticResource SubtitleTextBlockStyle}" Text="Page with cards layout" /> - + - + @@ -49,19 +49,18 @@ HorizontalAlignment="Center" Style="{StaticResource SubtitleTextBlockStyle}" Text="Form layout" /> - + - - + - + @@ -79,7 +78,7 @@ - + - + - + - + - + - + - + - + - + Type helps provide structure and hierarchy to UI. The default font for Windows is Segoe UI Variable. @@ -37,7 +37,7 @@ <TextBlock Text="Title" Style="{StaticResource TitleTextBlockStyle}" /> <TextBlock Text="Title Large" Style="{StaticResource TitleLargeTextBlockStyle}" /> <TextBlock Text="Display" Style="{StaticResource DisplayTextBlockStyle}" />" > - + @@ -51,10 +51,10 @@ - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + +