Skip to content

Commit

Permalink
Update ToggleSwitch.axaml
Browse files Browse the repository at this point in the history
Added handler for LeftHeader class for ToggleSwitch to comply with demo project
  • Loading branch information
ZecosMAX authored Mar 10, 2024
1 parent 88e87f4 commit b14b32e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Material.Styles/Resources/Themes/ToggleSwitch.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,12 @@
Path=(assists:ToggleSwitchAssist.SwitchTrackOnBackground)}" />
</Style>

<!-- Left-right handle variant -->

<Style Selector="^.LeftHeader /template/ DockPanel#PART_RootPanel > Viewbox">
<Setter Property="DockPanel.Dock" Value="Right" />
</Style>

<!-- Accent variant -->

<Style Selector="^.accent">
Expand Down Expand Up @@ -195,4 +201,4 @@

<ControlTheme x:Key="{x:Type ToggleSwitch}" TargetType="ToggleSwitch"
BasedOn="{StaticResource MaterialToggleSwitch}" />
</ResourceDictionary>
</ResourceDictionary>

0 comments on commit b14b32e

Please sign in to comment.