feat: add CustomToggleSwitch and SimpleToggleSwitch

This commit is contained in:
Zhang Dian
2023-02-23 13:26:18 +08:00
parent 20f421f6fc
commit fa19b9e89a
2 changed files with 61 additions and 2 deletions

View File

@@ -24,7 +24,12 @@
IsEnabled="False"
OffContent="OffContent"
OnContent="OnContent" />
<ToggleSwitch Theme="{DynamicResource SimpleToggleSwitch}">
<ToggleSwitch
Theme="{DynamicResource SimpleToggleSwitch}"
Content="Content"
OffContent="OffContent"
OnContent="OnContent" />
<ToggleSwitch Theme="{DynamicResource CustomToggleSwitch}">
<ToggleSwitch.OnContent>
<PathIcon
Width="16"