Skip to content

Commit 88fada5

Browse files
committed
set default lidtboxitem style, fixes #511
1 parent 3b1b8df commit 88fada5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.Defaults.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
<Style TargetType="{x:Type GroupBox}" BasedOn="{StaticResource MaterialDesignGroupBox}" />
5959
<Style TargetType="{x:Type Label}" BasedOn="{StaticResource MaterialDesignLabel}" />
6060
<Style TargetType="{x:Type ListBox}" BasedOn="{StaticResource MaterialDesignListBox}" />
61+
<Style TargetType="{x:Type ListBoxItem}" BasedOn="{StaticResource MaterialDesignListBoxItem}" />
6162
<Style TargetType="{x:Type PasswordBox}" BasedOn="{StaticResource MaterialDesignPasswordBox}" />
6263
<Style TargetType="{x:Type ProgressBar}" BasedOn="{StaticResource MaterialDesignLinearProgressBar}" />
6364
<Style TargetType="{x:Type RadioButton}" BasedOn="{StaticResource MaterialDesignRadioButton}" />

MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.ListBox.xaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,8 +320,7 @@
320320
<Setter Property="ScrollViewer.CanContentScroll" Value="true"/>
321321
<Setter Property="ScrollViewer.PanningMode" Value="Both"/>
322322
<Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
323-
<Setter Property="VerticalContentAlignment" Value="Center"/>
324-
<Setter Property="ItemContainerStyle" Value="{StaticResource MaterialDesignListBoxItem}"/>
323+
<Setter Property="VerticalContentAlignment" Value="Center"/>
325324
<Setter Property="Template">
326325
<Setter.Value>
327326
<ControlTemplate TargetType="{x:Type ListBox}">

0 commit comments

Comments
 (0)