Skip to content

Commit

Permalink
Remove infinitely looping animation from MTC template (#8963)
Browse files Browse the repository at this point in the history
  • Loading branch information
gegao18 authored Oct 27, 2023
1 parent 00b8713 commit e680e28
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dev/CommonStyles/MediaTransportControls_themeresources.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,13 @@
<VisualState x:Name="Buffering">
<VisualState.Setters>
<Setter Target="BufferingProgressBar.Visibility" Value="Visible" />
<Setter Target="BufferingProgressBar.ShowPaused" Value="False" />
</VisualState.Setters>
</VisualState>
<VisualState x:Name="Loading">
<VisualState.Setters>
<Setter Target="BufferingProgressBar.Visibility" Value="Visible" />
<Setter Target="BufferingProgressBar.ShowPaused" Value="False" />
</VisualState.Setters>
<Storyboard>
<DoubleAnimation Storyboard.TargetName="ProgressSlider" Storyboard.TargetProperty="Opacity" To="0" Duration="0" />
Expand Down Expand Up @@ -304,7 +306,7 @@
Height="{ThemeResource MediaTransportControlsSliderHeight}"
VerticalAlignment="Center"
IsThumbToolTipEnabled="False" />
<ProgressBar x:Name="BufferingProgressBar" Height="4" IsIndeterminate="True" IsHitTestVisible="False" VerticalAlignment="Top" Margin="0,2,0,0" Visibility="Collapsed" />
<ProgressBar x:Name="BufferingProgressBar" Height="4" IsIndeterminate="True" ShowPaused="True" IsHitTestVisible="False" VerticalAlignment="Top" Margin="0,2,0,0" Visibility="Collapsed" />
<Grid x:Name="TimeTextGrid" Margin="7,0,7,2" Grid.Row="1" Height="16">
<TextBlock x:Name="TimeElapsedElement" Style="{StaticResource CaptionTextBlockStyle}" Margin="0" Text="00:00" HorizontalAlignment="Left" VerticalAlignment="Bottom" />
<TextBlock x:Name="TimeRemainingElement" Style="{StaticResource CaptionTextBlockStyle}" Text="00:00" HorizontalAlignment="Right" VerticalAlignment="Bottom" />
Expand Down

0 comments on commit e680e28

Please sign in to comment.