Skip to content

Commit

Permalink
Removing use of ScrollViewerScrollBarMargin in test markup (#4506)
Browse files Browse the repository at this point in the history
  • Loading branch information
RBrid authored Mar 13, 2021
1 parent 4a8c540 commit 66661ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions test/MUXControlsTestApp/App.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
<ResourceDictionary x:Name="_styleOverridesPlaceholder"/>
</ResourceDictionary.MergedDictionaries>

<Thickness x:Key="AppScrollViewerScrollBarMargin">1</Thickness> <!-- use 0 when switching to Version1 -->

<Style x:Key="StandardGroupHeader" TargetType="TextBlock">
<Setter Property="FontSize" Value="22"/>
<Setter Property="Margin" Value="0,0,0,8"/>
Expand Down
4 changes: 2 additions & 2 deletions test/MUXControlsTestApp/Themes/DisableAnimationsStyles.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<Grid
Grid.Column="1"
Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}"
Padding="{ThemeResource ScrollViewerScrollBarMargin}">
Padding="{ThemeResource AppScrollViewerScrollBarMargin}">
<ScrollBar x:Name="VerticalScrollBar"
IsTabStop="False"
Maximum="{TemplateBinding ScrollableHeight}"
Expand All @@ -53,7 +53,7 @@
<Grid
Grid.Row="1"
Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}"
Padding="{ThemeResource ScrollViewerScrollBarMargin}">
Padding="{ThemeResource AppScrollViewerScrollBarMargin}">
<ScrollBar x:Name="HorizontalScrollBar"
IsTabStop="False"
Maximum="{TemplateBinding ScrollableWidth}"
Expand Down

0 comments on commit 66661ba

Please sign in to comment.