Skip to content

Commit

Permalink
Merge pull request #356 from ZecosMAX/master
Browse files Browse the repository at this point in the history
Fix for LeftHeader class for ToggleSwich
  • Loading branch information
SKProCH authored Mar 10, 2024
2 parents 88e87f4 + b14b32e commit 915323a
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 915323a

Please sign in to comment.