Fix SKLottieView animation not starting when IsAnimationEnabled toggled before Window assignment#333
Draft
Fix SKLottieView animation not starting when IsAnimationEnabled toggled before Window assignment#333
Conversation
Co-authored-by: mattleibow <1096616+mattleibow@users.noreply.github.com>
Co-authored-by: mattleibow <1096616+mattleibow@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix SKLottieView not enabling animation after initialization
Fix SKLottieView animation not starting when IsAnimationEnabled toggled before Window assignment
Feb 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SKLottieView with
IsAnimationEnabled="False"in XAML cannot be re-enabled from code-behind. SettingIsAnimationEnabled = trueappears to work but animation never runs.Root Cause
When
IsAnimationEnabledis set to true before the view has a Window:UpdateIsAnimationEnabled()starts a 16ms timerChanges
SKAnimatedSurfaceView.shared.cs
UpdateIsAnimationEnabled()OnPropertyChangedto restart animation when Window property changesThis ensures animation starts correctly regardless of initialization order between
IsAnimationEnabledand Window assignment.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
0t3vsblobprodcus362.vsblob.vsassets.io/usr/bin/dotnet dotnet build tests/SkiaSharp.Extended.Tests/SkiaSharp.Extended.Tests.csproj(dns block)/usr/bin/dotnet dotnet restore --no-dependencies /home/REDACTED/work/SkiaSharp.Extended/SkiaSharp.Extended/source/SkiaSharp.Extended/SkiaSharp.Extended.csproj --packages /home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:AllowMissingPrunePackageData=true(dns block)1s1vsblobprodcus386.vsblob.vsassets.io/usr/bin/dotnet dotnet restore --no-dependencies /home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/8E0510E7BE57D5CDD12984F1A8B1B374/missingpackages_workingdir --packages /home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/missingpackages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal --configfile /home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/nugetconfig/nuget.config --force(dns block)2zrvsblobprodcus388.vsblob.vsassets.io/usr/bin/dotnet dotnet workload restore(dns block)/usr/bin/dotnet dotnet restore --no-dependencies /home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/A3667232A3D22B710FDE080B34BE347F/missingpackages_workingdir --packages /home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/missingpackages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal --configfile /home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/nugetconfig/nuget.config --force(dns block)37bvsblobprodcus311.vsblob.vsassets.io/usr/bin/dotnet dotnet restore --no-dependencies /home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/A444A7F4B86F65D3F2A7BCF8163D0596/missingpackages_workingdir --packages /home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/missingpackages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal --configfile /home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/nugetconfig/nuget.config --force(dns block)4m6vsblobprodcus384.vsblob.vsassets.io/usr/bin/dotnet dotnet workload restore(dns block)7devsblobprodcus323.vsblob.vsassets.io/usr/bin/dotnet dotnet restore --no-dependencies /home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/5B74F40C93A078C72D8DF238B871667A/missingpackages_workingdir --packages /home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/missingpackages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal --configfile /home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/nugetconfig/nuget.config --force(dns block)7k6vsblobprodcus337.vsblob.vsassets.io/usr/bin/dotnet dotnet restore --no-dependencies /home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/169BD6A679E70F1A8DB1754AF220F794/missingpackages_workingdir --packages /home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/missingpackages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal --configfile /home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/nugetconfig/nuget.config --force(dns block)bcnvsblobprodcus378.vsblob.vsassets.io/usr/bin/dotnet dotnet build source/SkiaSharp.Extended.UI.Maui/SkiaSharp.Extended.UI.Maui.csproj -f net9.0-android35.0(dns block)/usr/bin/dotnet dotnet workload restore(dns block)/usr/bin/dotnet dotnet build tests/SkiaSharp.Extended.UI.Maui.Tests/SkiaSharp.Extended.UI.Maui.Tests.csproj(dns block)c78vsblobprodcus322.vsblob.vsassets.io/usr/bin/dotnet dotnet workload restore(dns block)/usr/bin/dotnet dotnet build tests/SkiaSharp.Extended.Tests/SkiaSharp.Extended.Tests.csproj(dns block)/usr/bin/dotnet dotnet restore --no-dependencies /home/REDACTED/work/SkiaSharp.Extended/SkiaSharp.Extended/tests/SkiaSharp.Extended.Tests/SkiaSharp.Extended.Tests.csproj --packages /home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:AllowMissingPrunePackageData=true(dns block)fdpvsblobprodcus345.vsblob.vsassets.io/usr/bin/dotnet dotnet restore --no-dependencies /home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/5707D9CCD3909344C2384588AB311A3D/missingpackages_workingdir --packages /home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/missingpackages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal --configfile /home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/nugetconfig/nuget.config --force(dns block)/usr/bin/dotnet dotnet restore --no-dependencies /home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/A3667232A3D22B710FDE080B34BE347F/missingpackages_workingdir --packages /home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/missingpackages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal --configfile /home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/nugetconfig/nuget.config --force(dns block)frdvsblobprodcus327.vsblob.vsassets.io/usr/bin/dotnet dotnet build tests/SkiaSharp.Extended.Tests/SkiaSharp.Extended.Tests.csproj(dns block)/usr/bin/dotnet dotnet restore --no-dependencies /home/REDACTED/work/SkiaSharp.Extended/SkiaSharp.Extended/tests/SkiaSharp.Extended.Tests/SkiaSharp.Extended.Tests.csproj --packages /home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:AllowMissingPrunePackageData=true(dns block)/usr/bin/dotnet dotnet restore --no-dependencies /home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/CB9CBA9383D5A238E2B9DD721B214239/missingpackages_workingdir --packages /home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/missingpackages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal --configfile /home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/nugetconfig/nuget.config --force(dns block)imzvsblobprodcus368.vsblob.vsassets.io/usr/bin/dotnet dotnet restore --no-dependencies /home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/D209161F91CDA5622BE85E6A2020A99D/missingpackages_workingdir --packages /home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/missingpackages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal --configfile /home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/nugetconfig/nuget.config --force(dns block)kgfvsblobprodcus314.vsblob.vsassets.io/usr/bin/dotnet dotnet restore --no-dependencies /home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/A444A7F4B86F65D3F2A7BCF8163D0596/missingpackages_workingdir --packages /home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/missingpackages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal --configfile /home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/nugetconfig/nuget.config --force(dns block)lylvsblobprodcus31.vsblob.vsassets.io/usr/bin/dotnet dotnet build tests/SkiaSharp.Extended.Tests/SkiaSharp.Extended.Tests.csproj(dns block)/usr/bin/dotnet dotnet restore --no-dependencies /home/REDACTED/work/SkiaSharp.Extended/SkiaSharp.Extended/tests/SkiaSharp.Extended.Tests/SkiaSharp.Extended.Tests.csproj --packages /home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:AllowMissingPrunePackageData=true(dns block)m16vsblobprodcus374.vsblob.vsassets.io/usr/bin/dotnet dotnet restore --no-dependencies /home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/17F5F6D9D2176E6846B1D7AA9CBB2984/missingpackages_workingdir --packages /home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/missingpackages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal --configfile /home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/nugetconfig/nuget.config --force(dns block)o3svsblobprodcus318.vsblob.vsassets.io/usr/bin/dotnet dotnet workload restore(dns block)pdfvsblobprodcus380.vsblob.vsassets.io/usr/bin/dotnet dotnet restore --no-dependencies /home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/91EEECFC80ED8D6FF706082129E4975F/missingpackages_workingdir --packages /home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/missingpackages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal --configfile /home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/nugetconfig/nuget.config --force(dns block)rcxvsblobprodcus328.vsblob.vsassets.io/usr/bin/dotnet dotnet build tests/SkiaSharp.Extended.Tests/SkiaSharp.Extended.Tests.csproj(dns block)/usr/bin/dotnet dotnet restore --no-dependencies /home/REDACTED/work/SkiaSharp.Extended/SkiaSharp.Extended/tests/SkiaSharp.Extended.Tests/SkiaSharp.Extended.Tests.csproj --packages /home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:AllowMissingPrunePackageData=true(dns block)/usr/bin/dotnet dotnet restore --no-dependencies /home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/97B6F2CA4656254F7A852783585D5FF8/missingpackages_workingdir --packages /home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/missingpackages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal --configfile /home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/nugetconfig/nuget.config --force(dns block)tphvsblobprodcus375.vsblob.vsassets.io/usr/bin/dotnet dotnet restore --no-dependencies /home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/A444A7F4B86F65D3F2A7BCF8163D0596/missingpackages_workingdir --packages /home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/missingpackages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal --configfile /home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/nugetconfig/nuget.config --force(dns block)u6ovsblobprodcus377.vsblob.vsassets.io/usr/bin/dotnet dotnet build tests/SkiaSharp.Extended.Tests/SkiaSharp.Extended.Tests.csproj(dns block)/usr/bin/dotnet dotnet restore --no-dependencies /home/REDACTED/work/SkiaSharp.Extended/SkiaSharp.Extended/source/SkiaSharp.Extended/SkiaSharp.Extended.csproj --packages /home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:AllowMissingPrunePackageData=true(dns block)/usr/bin/dotnet dotnet restore --no-dependencies /home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/D0CE446A70B8C279207B5D1C384112D1/missingpackages_workingdir --packages /home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/missingpackages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal --configfile /home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/nugetconfig/nuget.config --force(dns block)ytvvsblobprodcus310.vsblob.vsassets.io/usr/bin/dotnet dotnet restore --no-dependencies /home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/78EB6D0660D838F92C07DD472AF09142/missingpackages_workingdir --packages /home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/missingpackages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal --configfile /home/REDACTED/work/SkiaSharp.Extended/.codeql-scratch/dbs/csharp/working/nugetconfig/nuget.config --force(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.