Skip to content

Commit

Permalink
Merge pull request #150 from dylanlangston/patch-1
Browse files Browse the repository at this point in the history
Stop Spinner from rotating when hidden. (part 1/2)
  • Loading branch information
appleneko2001 committed Jan 29, 2022
2 parents f8e1f17 + acc0a32 commit 63854cf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Material.Styles/ProgressBar.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -328,10 +328,13 @@
Selector="ProgressBar.Circle:not(:indeterminate) /template/ controls|Rotator#PART_Rotator,
ProgressBar.Circle[IsVisible=false] /template/ controls|Rotator#PART_Rotator">
<Style.Animations>
<Animation Duration="0:0:0.1" IterationCount="1">
<Animation Duration="0:0:0.1" IterationCount="INFINITE">
<KeyFrame Cue="0%">
<Setter Property="Speed" Value="0" />
</KeyFrame>
<KeyFrame Cue="100%">
<Setter Property="Speed" Value="0" />
</KeyFrame>
</Animation>
</Style.Animations>
</Style>
Expand Down Expand Up @@ -394,4 +397,4 @@
</StackPanel>
</Border>
</Design.PreviewWith>
</Styles>
</Styles>

0 comments on commit 63854cf

Please sign in to comment.