Skip to content

Commit 2089f6f

Browse files
StreissiKeboo
authored andcommitted
Shadow on toggle switch button (#1038)
* add shadow possibility to MaterialDesignActionToggleButton * use shadowconverter instance * use rootgrid for shadow effect
1 parent 73082b3 commit 2089f6f

File tree

2 files changed

+257
-255
lines changed

2 files changed

+257
-255
lines changed

MainDemo.Wpf/Buttons.xaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,8 @@
382382
</smtx:XamlDisplay>
383383
<smtx:XamlDisplay Key="buttons_34" Margin="0 5 8 8">
384384
<ToggleButton Content="H" Style="{StaticResource MaterialDesignActionToggleButton}"
385-
ToolTip="MaterialDesignActionToggleButton"/>
385+
ToolTip="MaterialDesignActionToggleButton"
386+
materialDesign:ShadowAssist.ShadowDepth="Depth3"/>
386387
</smtx:XamlDisplay>
387388
<smtx:XamlDisplay Key="buttons_35" Margin="0 5 8 8">
388389
<!-- checkbox style same as toggle button -->

0 commit comments

Comments
 (0)