Skip to content

Commit acd6769

Browse files
hv0905Keboo
authored andcommitted
Fix the background problem on Toolbar (#1031)
Now user and Set the Listbox Background to Null to get a Fully transparent toolbar
1 parent 84b3bc7 commit acd6769

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.ListBox.xaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
</Style>
143143

144144
<Style x:Key="MaterialDesignToolToggleListBox" TargetType="{x:Type ListBox}">
145-
<Setter Property="Background" Value="Transparent"/>
145+
<Setter Property="Background" Value="{DynamicResource MaterialDesignToolBarBackground}"/>
146146
<Setter Property="BorderBrush" Value="Transparent"/>
147147
<Setter Property="BorderThickness" Value="0"/>
148148
<Setter Property="Foreground" Value="{DynamicResource MaterialDesignBody}"/>
@@ -174,10 +174,9 @@
174174
<Border x:Name="Bd"
175175
BorderBrush="{TemplateBinding BorderBrush}"
176176
BorderThickness="{TemplateBinding BorderThickness}"
177-
Background="{TemplateBinding Background}"
178177
SnapsToDevicePixels="true"
179178
Padding="{TemplateBinding Padding}">
180-
<wpf:Card wpf:ShadowAssist.ShadowDepth="{TemplateBinding wpf:ShadowAssist.ShadowDepth}" HorizontalAlignment="Left" Background="{DynamicResource MaterialDesignToolBarBackground}">
179+
<wpf:Card wpf:ShadowAssist.ShadowDepth="{TemplateBinding wpf:ShadowAssist.ShadowDepth}" HorizontalAlignment="Left" Background="{TemplateBinding Background}">
181180
<ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
182181
</wpf:Card>
183182
</Border>

0 commit comments

Comments
 (0)