Skip to content

Commit

Permalink
Fix #282: ListBox Scrollbar hidden but not Collapsed
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinnara committed Mar 11, 2021
1 parent 065f4a7 commit f493a70
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ModernWpf/Styles/ListBox.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@
x:Name="ScrollViewer"
Padding="{TemplateBinding Padding}"
Focusable="False"
HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}"
VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}"
primitives:ScrollViewerHelper.AutoHideScrollBars="{TemplateBinding primitives:ScrollViewerHelper.AutoHideScrollBars}">
<ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
</ScrollViewer>
Expand Down
2 changes: 2 additions & 0 deletions ModernWpf/Styles/ListView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@
<local:ScrollViewerEx
Padding="{TemplateBinding Padding}"
Focusable="false"
HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}"
VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}"
primitives:ScrollViewerHelper.AutoHideScrollBars="{TemplateBinding primitives:ScrollViewerHelper.AutoHideScrollBars}">
<ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
</local:ScrollViewerEx>
Expand Down

0 comments on commit f493a70

Please sign in to comment.