Skip to content

Commit

Permalink
Merge pull request #13955 from unoplatform/Youssef1313/port-winui
Browse files Browse the repository at this point in the history
fix: Remove infinitely looping BufferingProgressBar animation from MTC template
  • Loading branch information
jeromelaban authored Dec 13, 2023
2 parents d7b619e + 44c4e3f commit 0839e9e
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 0839e9e

Please sign in to comment.