Skip to content

Commit d802fde

Browse files
TWhiddenTravis Whidden
andauthored
#3740 - Fix to Style MaterialDesignSwitchToggleButton 'System.Windows.Media.Animation.DoubleAnimation' cannot use default origin value of 'NaN' in UncheckedStoryboard when using DynamicResource (#3776)
Co-authored-by: Travis Whidden <[email protected]>
1 parent 9ba36d8 commit d802fde

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/MaterialDesignThemes.Wpf/Themes/MaterialDesign3.ToggleButton.xaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,10 +399,12 @@
399399
Duration="0" />
400400
<DoubleAnimation Storyboard.TargetName="Thumb"
401401
Storyboard.TargetProperty="Width"
402+
From="0"
402403
To="{Binding Tag, ElementName=SwitchGrid}"
403404
Duration="0" />
404405
<DoubleAnimation Storyboard.TargetName="Thumb"
405406
Storyboard.TargetProperty="Height"
407+
From="0"
406408
To="{Binding Tag, ElementName=SwitchGrid}"
407409
Duration="0" />
408410
</Storyboard>

0 commit comments

Comments
 (0)