Skip to content

Commit

Permalink
AppUI: Fix crash happening when resizing the window while displaying …
Browse files Browse the repository at this point in the history
…a gif

Fixes #263
  • Loading branch information
julianxhokaxhiu committed Jan 21, 2025
1 parent 603a682 commit d9de217
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions AppUI/Windows/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,8 @@
RenderOptions.BitmapScalingMode="HighQuality"
gif:AnimationBehavior.AutoStart="True"
gif:AnimationBehavior.RepeatBehavior="Forever"
gif:AnimationBehavior.SourceUri="/AppUI;component/Resources/circleLoader.gif"/>
gif:AnimationBehavior.SourceUri="/AppUI;component/Resources/circleLoader.gif"
gif:AnimationBehavior.CacheFramesInMemory="True"/>


<Image Grid.Row="1"
Expand All @@ -354,7 +355,8 @@
RenderOptions.BitmapScalingMode="HighQuality"
gif:AnimationBehavior.AutoStart="True"
gif:AnimationBehavior.Loaded="Image_Loaded"
gif:AnimationBehavior.SourceUri="{Binding PreviewModImageSource}">
gif:AnimationBehavior.SourceUri="{Binding PreviewModImageSource}"
gif:AnimationBehavior.CacheFramesInMemory="True">
<Image.Style>
<!--Custom style to hide image when loading-->
<Style TargetType="{x:Type Image}">
Expand Down

0 comments on commit d9de217

Please sign in to comment.