Skip to content

Commit daf205d

Browse files
authored
set FillBehavior=Stop for TextElement.Foreground animation (#987) (#1794)
1 parent 6f06043 commit daf205d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.Calendar.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
<VisualState x:Name="Selected">
5050
<Storyboard>
5151
<DoubleAnimation Duration="0" To=".75" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="SelectedBackground"/>
52-
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(TextElement.Foreground)" Storyboard.TargetName="NormalText">
52+
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(TextElement.Foreground)" Storyboard.TargetName="NormalText" FillBehavior="Stop">
5353
<DiscreteObjectKeyFrame Value="{DynamicResource PrimaryHueMidForegroundBrush}" KeyTime="0" />
5454
</ObjectAnimationUsingKeyFrames>
5555
</Storyboard>
@@ -167,7 +167,7 @@
167167
<VisualState x:Name="Selected">
168168
<Storyboard>
169169
<DoubleAnimation Duration="0" To=".75" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="SelectedBackground"/>
170-
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(TextElement.Foreground)" Storyboard.TargetName="NormalText">
170+
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(TextElement.Foreground)" Storyboard.TargetName="NormalText" FillBehavior="Stop">
171171
<DiscreteObjectKeyFrame Value="{DynamicResource PrimaryHueMidForegroundBrush}" KeyTime="0" />
172172
</ObjectAnimationUsingKeyFrames>
173173
</Storyboard>

0 commit comments

Comments
 (0)