Skip to content

Commit

Permalink
fix: Remove infinitely looping BufferingProgressBar animation from MT…
Browse files Browse the repository at this point in the history
…C template
  • Loading branch information
Youssef1313 authored Oct 11, 2023
1 parent 05c2a2f commit 44c4e3f
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,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 @@ -311,7 +313,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 Expand Up @@ -455,4 +457,4 @@
</Setter.Value>
</Setter>
</Style>
</ResourceDictionary>
</ResourceDictionary>

0 comments on commit 44c4e3f

Please sign in to comment.