Skip to content

Commit 3ed34dd

Browse files
authored
Fix ScrollViewer top separator visibility issue (#1703)
1 parent 8283178 commit 3ed34dd

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.ScrollViewer.xaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,6 @@
2020
Grid.Row="1"
2121
Visibility="{Binding Path=(wpf:ScrollViewerAssist.CornerRectangleVisibility), RelativeSource={RelativeSource TemplatedParent}}"/>
2222

23-
<Separator
24-
x:Name="PART_TopSeparator"
25-
Background="{DynamicResource MaterialDesignSelection}"
26-
Grid.Column="0"
27-
Grid.Row="0"
28-
Opacity="0.4"
29-
Margin="0"
30-
VerticalAlignment="Top"
31-
Visibility="Hidden"/>
32-
3323
<ScrollContentPresenter
3424
x:Name="PART_ScrollContentPresenter"
3525
CanContentScroll="{TemplateBinding CanContentScroll}"
@@ -40,6 +30,16 @@
4030
Margin="{TemplateBinding Padding}"
4131
Grid.Row="0"/>
4232

33+
<Separator
34+
x:Name="PART_TopSeparator"
35+
Background="{DynamicResource MaterialDesignSelection}"
36+
Grid.Column="0"
37+
Grid.Row="0"
38+
Opacity="0.4"
39+
Margin="0"
40+
VerticalAlignment="Top"
41+
Visibility="Visible"/>
42+
4343
<Separator
4444
x:Name="PART_BottomSeparator"
4545
Background="{DynamicResource MaterialDesignSelection}"

0 commit comments

Comments
 (0)