File tree Expand file tree Collapse file tree 2 files changed +29
-2
lines changed
MaterialDesignThemes.Wpf/Themes Expand file tree Collapse file tree 2 files changed +29
-2
lines changed Original file line number Diff line number Diff line change 303
303
</ListBoxItem >
304
304
</ListBox >
305
305
306
- <ListBox Grid.Column=" 1" Grid.Row=" 1" Style =" {StaticResource MaterialDesignToolToggleListBox}"
306
+ <ListBox Grid.Column=" 1" Grid.Row=" 1" Style =" {StaticResource MaterialDesignToolToggleFlatListBox}" SelectedIndex =" 0" >
307
+ <ListBox .ToolTip>
308
+ <StackPanel >
309
+ <TextBlock Text =" MaterialDesignToolToggleFlatListBox" />
310
+ <TextBlock Text =" Exclusive selection" />
311
+ <TextBlock Text =" ListBoxAssist.IsToggle allows more natural toggle behaviour" />
312
+ </StackPanel >
313
+ </ListBox .ToolTip>
314
+ <ListBoxItem >
315
+ <materialDesign : PackIcon Kind =" FormatAlignLeft" />
316
+ </ListBoxItem >
317
+ <ListBoxItem >
318
+ <materialDesign : PackIcon Kind =" FormatAlignCenter" />
319
+ </ListBoxItem >
320
+ <ListBoxItem >
321
+ <materialDesign : PackIcon Kind =" FormatAlignRight" />
322
+ </ListBoxItem >
323
+ <ListBoxItem >
324
+ <materialDesign : PackIcon Kind =" FormatAlignJustify" />
325
+ </ListBoxItem >
326
+ </ListBox >
327
+
328
+ <ListBox Grid.Column=" 1" Grid.Row=" 2" Style =" {StaticResource MaterialDesignToolToggleListBox}"
307
329
SelectionMode =" Extended"
308
330
Margin =" 0 8 0 0" >
309
331
<ListBox .ToolTip>
Original file line number Diff line number Diff line change 150
150
<Setter Property =" ScrollViewer.PanningMode" Value =" Both" />
151
151
<Setter Property =" Stylus.IsFlicksEnabled" Value =" False" />
152
152
<Setter Property =" wpf:ListBoxAssist.IsToggle" Value =" True" />
153
+ <Setter Property =" wpf:ShadowAssist.ShadowDepth" Value =" Depth1" />
153
154
<Setter Property =" VerticalContentAlignment" Value =" Center" />
154
155
<Setter Property =" ItemContainerStyle" Value =" {StaticResource MaterialDesignToolToggleListBoxItem}" />
155
156
<Setter Property =" ItemsPanel" >
174
175
Background =" {TemplateBinding Background}"
175
176
SnapsToDevicePixels =" true"
176
177
Padding =" {TemplateBinding Padding}" >
177
- <wpf : Card wpf:ShadowAssist.ShadowDepth=" Depth1 " HorizontalAlignment =" Left" >
178
+ <wpf : Card wpf:ShadowAssist.ShadowDepth=" {TemplateBinding wpf:ShadowAssist.ShadowDepth} " HorizontalAlignment =" Left" >
178
179
<ItemsPresenter SnapsToDevicePixels =" {TemplateBinding SnapsToDevicePixels}" />
179
180
</wpf : Card >
180
181
</Border >
192
193
</Setter >
193
194
</Style >
194
195
196
+ <Style x : Key =" MaterialDesignToolToggleFlatListBox" TargetType =" {x:Type ListBox}" BasedOn =" {StaticResource MaterialDesignToolToggleListBox}" >
197
+ <Setter Property =" wpf:ShadowAssist.ShadowDepth" Value =" Depth0" />
198
+ </Style >
199
+
195
200
<Style x : Key =" MaterialDesignListBoxItem" TargetType =" {x:Type ListBoxItem}" >
196
201
<Setter Property =" Background" Value =" Transparent" />
197
202
<Setter Property =" BorderThickness" Value =" 0" />
You can’t perform that action at this time.
0 commit comments