fix: rename theme.

This commit is contained in:
Zhang Dian 2023-02-23 20:52:02 +08:00
parent fa19b9e89a
commit c8e58e3dbf
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@
Content="Content" Content="Content"
OffContent="OffContent" OffContent="OffContent"
OnContent="OnContent" /> OnContent="OnContent" />
<ToggleSwitch Theme="{DynamicResource CustomToggleSwitch}"> <ToggleSwitch Theme="{DynamicResource ButtonToggleSwitch}">
<ToggleSwitch.OnContent> <ToggleSwitch.OnContent>
<PathIcon <PathIcon
Width="16" Width="16"

View File

@ -169,7 +169,7 @@
</Style> </Style>
</ControlTheme> </ControlTheme>
<ControlTheme x:Key="CustomToggleSwitch" BasedOn="{StaticResource {x:Type ToggleSwitch}}" TargetType="ToggleSwitch"> <ControlTheme x:Key="ButtonToggleSwitch" BasedOn="{StaticResource {x:Type ToggleSwitch}}" TargetType="ToggleSwitch">
<Setter Property="Template"> <Setter Property="Template">
<ControlTemplate TargetType="ToggleSwitch"> <ControlTemplate TargetType="ToggleSwitch">
<Grid <Grid