|
17 | 17 |
|
18 | 18 | <Style x:Key="MaterialDesignListBoxItem" TargetType="{x:Type ListBoxItem}">
|
19 | 19 | <Setter Property="Background" Value="Transparent"/>
|
| 20 | + <Setter Property="BorderThickness" Value="0"/> |
20 | 21 | <Setter Property="HorizontalContentAlignment" Value="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
|
21 | 22 | <Setter Property="VerticalContentAlignment" Value="{Binding VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
|
22 | 23 | <Setter Property="Padding" Value="8" />
|
23 |
| - <Setter Property="SnapsToDevicePixels" Value="True"/> |
| 24 | + <Setter Property="SnapsToDevicePixels" Value="True"/> |
24 | 25 | <Setter Property="Template">
|
25 | 26 | <Setter.Value>
|
26 | 27 | <ControlTemplate TargetType="{x:Type ListBoxItem}">
|
|
135 | 136 | <Setter Property="Background" Value="Transparent"/>
|
136 | 137 | <Setter Property="BorderBrush" Value="Transparent"/>
|
137 | 138 | <Setter Property="BorderThickness" Value="0"/>
|
| 139 | + <Setter Property="Foreground" Value="{DynamicResource MaterialDesignBody}"/> |
138 | 140 | <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Disabled"/>
|
139 | 141 | <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
|
140 | 142 | <Setter Property="ScrollViewer.CanContentScroll" Value="true"/>
|
|
145 | 147 | <Setter Property="Template">
|
146 | 148 | <Setter.Value>
|
147 | 149 | <ControlTemplate TargetType="{x:Type ListBox}">
|
148 |
| - <Border x:Name="Bd" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Padding="1" SnapsToDevicePixels="true"> |
| 150 | + <Border x:Name="Bd" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" SnapsToDevicePixels="true"> |
149 | 151 | <ScrollViewer Focusable="false" Padding="{TemplateBinding Padding}">
|
150 | 152 | <ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
|
151 | 153 | </ScrollViewer>
|
|
0 commit comments