Skip to content

Commit 4e488e7

Browse files
authored
Making visibility of scrollviewers as Auto (#10660)
1 parent 56787e4 commit 4e488e7

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Styles/ComboBox.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@
153153
<Setter Property="BorderBrush" Value="{DynamicResource ControlElevationBorderBrush}" />
154154
<Setter Property="BorderThickness" Value="{StaticResource ComboBoxBorderThemeThickness}" />
155155
<Setter Property="ScrollViewer.CanContentScroll" Value="False" />
156-
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Hidden" />
157-
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Hidden" />
156+
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto" />
157+
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto" />
158158
<Setter Property="ScrollViewer.IsDeferredScrollingEnabled" Value="False" />
159159
<Setter Property="HorizontalAlignment" Value="Stretch" />
160160
<Setter Property="VerticalAlignment" Value="Center" />

src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Themes/Fluent.Dark.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1436,8 +1436,8 @@
14361436
<Setter Property="BorderBrush" Value="{DynamicResource ControlElevationBorderBrush}" />
14371437
<Setter Property="BorderThickness" Value="{StaticResource ComboBoxBorderThemeThickness}" />
14381438
<Setter Property="ScrollViewer.CanContentScroll" Value="False" />
1439-
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Hidden" />
1440-
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Hidden" />
1439+
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto" />
1440+
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto" />
14411441
<Setter Property="ScrollViewer.IsDeferredScrollingEnabled" Value="False" />
14421442
<Setter Property="HorizontalAlignment" Value="Stretch" />
14431443
<Setter Property="VerticalAlignment" Value="Center" />

src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Themes/Fluent.HC.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1384,8 +1384,8 @@
13841384
<Setter Property="BorderBrush" Value="{DynamicResource ControlElevationBorderBrush}" />
13851385
<Setter Property="BorderThickness" Value="{StaticResource ComboBoxBorderThemeThickness}" />
13861386
<Setter Property="ScrollViewer.CanContentScroll" Value="False" />
1387-
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Hidden" />
1388-
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Hidden" />
1387+
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto" />
1388+
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto" />
13891389
<Setter Property="ScrollViewer.IsDeferredScrollingEnabled" Value="False" />
13901390
<Setter Property="HorizontalAlignment" Value="Stretch" />
13911391
<Setter Property="VerticalAlignment" Value="Center" />

src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Themes/Fluent.Light.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1445,8 +1445,8 @@
14451445
<Setter Property="BorderBrush" Value="{DynamicResource ControlElevationBorderBrush}" />
14461446
<Setter Property="BorderThickness" Value="{StaticResource ComboBoxBorderThemeThickness}" />
14471447
<Setter Property="ScrollViewer.CanContentScroll" Value="False" />
1448-
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Hidden" />
1449-
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Hidden" />
1448+
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto" />
1449+
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto" />
14501450
<Setter Property="ScrollViewer.IsDeferredScrollingEnabled" Value="False" />
14511451
<Setter Property="HorizontalAlignment" Value="Stretch" />
14521452
<Setter Property="VerticalAlignment" Value="Center" />

0 commit comments

Comments
 (0)